Merged in changes from revision 3276 in 1.77: ES_Body was not a valid parameter for get/set_es()
This commit is contained in:
parent
0f22a7fa06
commit
d62ae07b75
@ -692,6 +692,8 @@ static cell AMX_NATIVE_CALL get_es(AMX *amx, cell *params)
|
||||
ptr = MF_GetAmxAddr(amx, params[3]);
|
||||
*ptr = amx_ftoc(es->framerate);
|
||||
return 1;
|
||||
case ES_Body:
|
||||
return es->body;
|
||||
case ES_Controller:
|
||||
ptr = MF_GetAmxAddr(amx, params[3]);
|
||||
ptr[0] = es->controller[0];
|
||||
@ -937,6 +939,9 @@ static cell AMX_NATIVE_CALL set_es(AMX *amx, cell *params)
|
||||
case ES_FrameRate:
|
||||
es->framerate = amx_ctof(*ptr);
|
||||
return 1;
|
||||
case ES_Body:
|
||||
es->body = *ptr;
|
||||
return 1;
|
||||
case ES_Controller:
|
||||
es->controller[0] = ptr[0];
|
||||
es->controller[1] = ptr[1];
|
||||
|
Loading…
Reference in New Issue
Block a user