From d62ae07b751298cf3395ba047bbeeeacba2dbfd0 Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Thu, 1 Feb 2007 22:25:18 +0000 Subject: [PATCH] Merged in changes from revision 3276 in 1.77: ES_Body was not a valid parameter for get/set_es() --- dlls/fakemeta/fm_tr2.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/fakemeta/fm_tr2.cpp b/dlls/fakemeta/fm_tr2.cpp index 3d224676..1e0a9f93 100644 --- a/dlls/fakemeta/fm_tr2.cpp +++ b/dlls/fakemeta/fm_tr2.cpp @@ -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];