From be1475b7324d28f13dd17ac62c2c6768ebc8c603 Mon Sep 17 00:00:00 2001 From: Borja Ferrer Date: Sat, 29 Oct 2005 18:27:24 +0000 Subject: [PATCH] fixed bug at20181 ( why was an #if 0 in the function :o ) --- dlls/cstrike/cstrike.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/cstrike/cstrike.cpp b/dlls/cstrike/cstrike.cpp index 89196fad..7f0491f3 100755 --- a/dlls/cstrike/cstrike.cpp +++ b/dlls/cstrike/cstrike.cpp @@ -353,7 +353,7 @@ static cell AMX_NATIVE_CALL cs_set_weapon_burstmode(AMX *amx, cell *params) // c return 1; } -static cell AMX_NATIVE_CALL cs_get_user_armor(AMX *amx, cell *params) // cs_get_user_armor(index, CsArmorType:&armortype); = 2 params +static cell AMX_NATIVE_CALL cs_get_user_armor(AMX *amx, cell *params) // cs_get_user_armor(index, &CsArmorType:armortype); = 2 params { // Return how much armor and set reference of what type... // params[1] = user index @@ -364,10 +364,10 @@ static cell AMX_NATIVE_CALL cs_get_user_armor(AMX *amx, cell *params) // cs_get_ // Make into edict pointer edict_t *pPlayer = MF_GetPlayerEdict(params[1]); -#if 0 +// #if 0 (Removed this to make the function work) cell *armorTypeByRef = MF_GetAmxAddr(amx, params[2]); *armorTypeByRef = *((int *)pPlayer->pvPrivateData + OFFSET_ARMORTYPE); -#endif +// #endif return (cell)pPlayer->v.armorvalue; }