From 66da3375ba272dfc1c631616b73f03cdd56f7d92 Mon Sep 17 00:00:00 2001 From: Lukasz Wlasinksi Date: Thu, 9 Sep 2004 19:51:00 +0000 Subject: [PATCH] fixed bugs in set/get user ammo natives --- dlls/dod2/dodfun/NPD.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/dlls/dod2/dodfun/NPD.cpp b/dlls/dod2/dodfun/NPD.cpp index 78915914..00d07d62 100755 --- a/dlls/dod2/dodfun/NPD.cpp +++ b/dlls/dod2/dodfun/NPD.cpp @@ -274,9 +274,9 @@ static cell AMX_NATIVE_CALL set_user_ammo(AMX *amx, cell *params){ case DODW_KAR: case DODW_SCOPED_KAR: case DODW_ENFIELD: - *( (int*)pPlayer->pEdict->pvPrivateData + 56+LINUXOFFSET ) = params[3]; - *( (int*)pPlayer->pEdict->pvPrivateData + 281+LINUXOFFSET ) = params[3]; - *( (int*)pPlayer->pEdict->pvPrivateData + 313+LINUXOFFSET ) = params[3]; + *( (int*)pPlayer->pEdict->pvPrivateData + 54+LINUXOFFSET ) = params[3]; + *( (int*)pPlayer->pEdict->pvPrivateData + 283+LINUXOFFSET ) = params[3]; + *( (int*)pPlayer->pEdict->pvPrivateData + 315+LINUXOFFSET ) = params[3]; break; //57,286,318 @@ -284,9 +284,9 @@ static cell AMX_NATIVE_CALL set_user_ammo(AMX *amx, cell *params){ case DODW_BAR: case DODW_FG42: case DODW_BREN: - *( (int*)pPlayer->pEdict->pvPrivateData + 56+LINUXOFFSET ) = params[3]; - *( (int*)pPlayer->pEdict->pvPrivateData + 281+LINUXOFFSET ) = params[3]; - *( (int*)pPlayer->pEdict->pvPrivateData + 313+LINUXOFFSET ) = params[3]; + *( (int*)pPlayer->pEdict->pvPrivateData + 57+LINUXOFFSET ) = params[3]; + *( (int*)pPlayer->pEdict->pvPrivateData + 286+LINUXOFFSET ) = params[3]; + *( (int*)pPlayer->pEdict->pvPrivateData + 318+LINUXOFFSET ) = params[3]; break; //56,281,313 @@ -386,7 +386,7 @@ static cell AMX_NATIVE_CALL get_user_ammo(AMX *amx, cell *params){ case DODW_KAR: case DODW_SCOPED_KAR: case DODW_ENFIELD: - return *( (int*)pPlayer->pEdict->pvPrivateData + 56+LINUXOFFSET ); + return *( (int*)pPlayer->pEdict->pvPrivateData + 54+LINUXOFFSET ); break; //55,285,317