fixed amb991, dispatchkeyvalue natives had wrong offsets

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401521
This commit is contained in:
Borja Ferrer 2007-10-01 21:20:30 +00:00
parent f956093b93
commit ff280d6886
3 changed files with 19 additions and 19 deletions

View File

@ -93,7 +93,7 @@ static cell_t AcceptEntityInput(IPluginContext *pContext, const cell_t *params)
pass[1].flags = pass[2].flags = PASSFLAG_BYVAL; pass[1].flags = pass[2].flags = PASSFLAG_BYVAL;
pass[1].size = pass[2].size = sizeof(CBaseEntity *); pass[1].size = pass[2].size = sizeof(CBaseEntity *);
pass[3].type = PassType_Object; pass[3].type = PassType_Object;
pass[3].flags = PASSFLAG_BYVAL|PASSFLAG_OCTOR|PASSFLAG_ODTOR; pass[3].flags = PASSFLAG_BYVAL|PASSFLAG_OCTOR|PASSFLAG_ODTOR|PASSFLAG_OASSIGNOP;
pass[3].size = SIZEOF_VARIANT_T; pass[3].size = SIZEOF_VARIANT_T;
pass[4].type = PassType_Basic; pass[4].type = PassType_Basic;
pass[4].flags = PASSFLAG_BYVAL; pass[4].flags = PASSFLAG_BYVAL;

View File

@ -733,7 +733,7 @@ static cell_t DispatchKeyValueFloat(IPluginContext *pContext, const cell_t *para
{ {
ValvePassInfo pass[3]; ValvePassInfo pass[3];
InitPass(pass[0], Valve_String, PassType_Basic, PASSFLAG_BYVAL); InitPass(pass[0], Valve_String, PassType_Basic, PASSFLAG_BYVAL);
InitPass(pass[1], Valve_Float, PassType_Basic, PASSFLAG_BYVAL); InitPass(pass[1], Valve_Float, PassType_Float, PASSFLAG_BYVAL);
InitPass(pass[2], Valve_Bool, PassType_Basic, PASSFLAG_BYVAL); InitPass(pass[2], Valve_Bool, PassType_Basic, PASSFLAG_BYVAL);
if (!CreateBaseCall("DispatchKeyValueFloat", ValveCall_Entity, &pass[2], pass, 2, &pCall)) if (!CreateBaseCall("DispatchKeyValueFloat", ValveCall_Entity, &pass[2], pass, 2, &pCall))
{ {
@ -760,7 +760,7 @@ static cell_t DispatchKeyValueVector(IPluginContext *pContext, const cell_t *par
{ {
ValvePassInfo pass[3]; ValvePassInfo pass[3];
InitPass(pass[0], Valve_String, PassType_Basic, PASSFLAG_BYVAL); InitPass(pass[0], Valve_String, PassType_Basic, PASSFLAG_BYVAL);
InitPass(pass[1], Valve_Vector, PassType_Basic, PASSFLAG_BYVAL); InitPass(pass[1], Valve_Vector, PassType_Object, PASSFLAG_BYVAL|PASSFLAG_OCTOR|PASSFLAG_OASSIGNOP);
InitPass(pass[2], Valve_Bool, PassType_Basic, PASSFLAG_BYVAL); InitPass(pass[2], Valve_Bool, PassType_Basic, PASSFLAG_BYVAL);
if (!CreateBaseCall("DispatchKeyValueVector", ValveCall_Entity, &pass[2], pass, 2, &pCall)) if (!CreateBaseCall("DispatchKeyValueVector", ValveCall_Entity, &pass[2], pass, 2, &pCall))
{ {

View File

@ -306,7 +306,7 @@
} }
"DispatchKeyValue" "DispatchKeyValue"
{ {
"windows" "29" "windows" "31"
"linux" "30" "linux" "30"
} }
"DispatchKeyValueFloat" "DispatchKeyValueFloat"
@ -316,7 +316,7 @@
} }
"DispatchKeyValueVector" "DispatchKeyValueVector"
{ {
"windows" "31" "windows" "29"
"linux" "32" "linux" "32"
} }
} }
@ -379,7 +379,7 @@
} }
"DispatchKeyValue" "DispatchKeyValue"
{ {
"windows" "29" "windows" "31"
"linux" "30" "linux" "30"
} }
"DispatchKeyValueFloat" "DispatchKeyValueFloat"
@ -389,7 +389,7 @@
} }
"DispatchKeyValueVector" "DispatchKeyValueVector"
{ {
"windows" "31" "windows" "29"
"linux" "32" "linux" "32"
} }
} }
@ -452,7 +452,7 @@
} }
"DispatchKeyValue" "DispatchKeyValue"
{ {
"windows" "29" "windows" "31"
"linux" "30" "linux" "30"
} }
"DispatchKeyValueFloat" "DispatchKeyValueFloat"
@ -462,7 +462,7 @@
} }
"DispatchKeyValueVector" "DispatchKeyValueVector"
{ {
"windows" "31" "windows" "29"
"linux" "32" "linux" "32"
} }
} }
@ -521,7 +521,7 @@
} }
"DispatchKeyValue" "DispatchKeyValue"
{ {
"windows" "33" "windows" "35"
"linux" "34" "linux" "34"
} }
"DispatchKeyValueFloat" "DispatchKeyValueFloat"
@ -531,7 +531,7 @@
} }
"DispatchKeyValueVector" "DispatchKeyValueVector"
{ {
"windows" "35" "windows" "33"
"linux" "36" "linux" "36"
} }
@ -603,7 +603,7 @@
} }
"DispatchKeyValue" "DispatchKeyValue"
{ {
"windows" "29" "windows" "31"
"linux" "30" "linux" "30"
} }
"DispatchKeyValueFloat" "DispatchKeyValueFloat"
@ -613,7 +613,7 @@
} }
"DispatchKeyValueVector" "DispatchKeyValueVector"
{ {
"windows" "31" "windows" "29"
"linux" "32" "linux" "32"
} }
@ -695,7 +695,7 @@
} }
"DispatchKeyValue" "DispatchKeyValue"
{ {
"windows" "28" "windows" "30"
"linux" "29" "linux" "29"
} }
"DispatchKeyValueFloat" "DispatchKeyValueFloat"
@ -705,7 +705,7 @@
} }
"DispatchKeyValueVector" "DispatchKeyValueVector"
{ {
"windows" "30" "windows" "28"
"linux" "31" "linux" "31"
} }
} }
@ -789,7 +789,7 @@
} }
"DispatchKeyValue" "DispatchKeyValue"
{ {
"windows" "29" "windows" "31"
"linux" "30" "linux" "30"
} }
"DispatchKeyValueFloat" "DispatchKeyValueFloat"
@ -799,7 +799,7 @@
} }
"DispatchKeyValueVector" "DispatchKeyValueVector"
{ {
"windows" "31" "windows" "29"
"linux" "32" "linux" "32"
} }
@ -859,7 +859,7 @@
} }
"DispatchKeyValue" "DispatchKeyValue"
{ {
"windows" "28" "windows" "30"
"linux" "29" "linux" "29"
} }
"DispatchKeyValueFloat" "DispatchKeyValueFloat"
@ -869,7 +869,7 @@
} }
"DispatchKeyValueVector" "DispatchKeyValueVector"
{ {
"windows" "30" "windows" "28"
"linux" "31" "linux" "31"
} }