Fixed it for real <_<

This commit is contained in:
David Anderson 2005-07-20 03:19:53 +00:00
parent c4f097bb36
commit 21551a6ea8
2 changed files with 14 additions and 19 deletions

View File

@ -614,8 +614,7 @@ static cell AMX_NATIVE_CALL amx_set_pev(AMX *amx, cell *params)
{ {
// Grrr... // Grrr...
int len; int len;
char *string = MF_GetAmxString(amx, params[3], 0, &len); int iValue = blah[0];
int iValue = ALLOC_STRING(string);
switch(iSwitch) switch(iSwitch)
{ {
case fixangle: case fixangle:
@ -742,7 +741,6 @@ static cell AMX_NATIVE_CALL amx_set_pev(AMX *amx, cell *params)
else if (iSwitch > pev_float_start && iSwitch < pev_float_end) else if (iSwitch > pev_float_start && iSwitch < pev_float_end)
{ {
float fValue = amx_ctof(blah[0]); float fValue = amx_ctof(blah[0]);
switch(iSwitch) switch(iSwitch)
{ {
case impacttime: case impacttime:
@ -861,8 +859,9 @@ static cell AMX_NATIVE_CALL amx_set_pev(AMX *amx, cell *params)
} }
else if (iSwitch > pev_string_start && iSwitch < pev_string_end) else if (iSwitch > pev_string_start && iSwitch < pev_string_end)
{ {
int len;
int iValue = blah[0]; char *string = MF_GetAmxString(amx, params[3], 0, &len);
int iValue = ALLOC_STRING(string);
switch (iSwitch) switch (iSwitch)
{ {
case classname: case classname:
@ -944,11 +943,10 @@ static cell AMX_NATIVE_CALL amx_set_pev(AMX *amx, cell *params)
} }
else if (iSwitch > pev_vecarray_start && iSwitch < pev_vecarray_end) else if (iSwitch > pev_vecarray_start && iSwitch < pev_vecarray_end)
{ {
cell *vCell = MF_GetAmxAddr(amx,params[3]);
Vector vValue; Vector vValue;
vValue.x = amx_ctof(vCell[0]); vValue.x = amx_ctof(blah[0]);
vValue.y = amx_ctof(vCell[1]); vValue.y = amx_ctof(blah[1]);
vValue.z = amx_ctof(vCell[2]); vValue.z = amx_ctof(blah[2]);
switch(iSwitch) switch(iSwitch)
{ {
case origin: case origin:
@ -1026,9 +1024,7 @@ static cell AMX_NATIVE_CALL amx_set_pev(AMX *amx, cell *params)
} }
else if (iSwitch > pev_byte_start && iSwitch < pev_byte_end) else if (iSwitch > pev_byte_start && iSwitch < pev_byte_end)
{ {
cell *blah = MF_GetAmxAddr(amx,params[3]);
int iValue = blah[0]; int iValue = blah[0];
switch(iSwitch) switch(iSwitch)
{ {
case controller_0: case controller_0:
@ -1055,18 +1051,17 @@ static cell AMX_NATIVE_CALL amx_set_pev(AMX *amx, cell *params)
} }
else if (iSwitch > pev_bytearray_start && iSwitch < pev_bytearray_end) else if (iSwitch > pev_bytearray_start && iSwitch < pev_bytearray_end)
{ {
cell *vCell = MF_GetAmxAddr(amx,params[3]);
switch(iSwitch) switch(iSwitch)
{ {
case controller: case controller:
pPlayer->v.controller[0]=vCell[0]; pPlayer->v.controller[0]=blah[0];
pPlayer->v.controller[1]=vCell[1]; pPlayer->v.controller[1]=blah[1];
pPlayer->v.controller[2]=vCell[2]; pPlayer->v.controller[2]=blah[2];
pPlayer->v.controller[3]=vCell[3]; pPlayer->v.controller[3]=blah[3];
return 1; return 1;
case blending: case blending:
pPlayer->v.controller[0]=vCell[0]; pPlayer->v.controller[0]=blah[0];
pPlayer->v.controller[1]=vCell[1]; pPlayer->v.controller[1]=blah[1];
return 1; return 1;
default: default:
return 0; return 0;

View File

@ -5,7 +5,7 @@
// Module info // Module info
#define MODULE_NAME "FakeMeta" #define MODULE_NAME "FakeMeta"
#define MODULE_VERSION "1.01" #define MODULE_VERSION "1.10RC1"
#define MODULE_AUTHOR "AMX Mod X Dev Team" #define MODULE_AUTHOR "AMX Mod X Dev Team"
#define MODULE_URL "http://www.amxmodx.org" #define MODULE_URL "http://www.amxmodx.org"
#define MODULE_LOGTAG "FAKEMETA" #define MODULE_LOGTAG "FAKEMETA"