fixed but at20584

This commit is contained in:
Borja Ferrer 2005-11-12 00:46:26 +00:00
parent d190b207b4
commit 18bf26efb6

View File

@ -810,12 +810,6 @@ static cell AMX_NATIVE_CALL get_user_weapon(AMX *amx, cell *params) /* 3 param *
{ {
int wpn = pPlayer->current; int wpn = pPlayer->current;
if (!(pPlayer->pEdict->v.weapons & (1<<wpn)))
{
pPlayer->current = 0;
return 0;
}
cell *cpTemp = get_amxaddr(amx, params[2]); cell *cpTemp = get_amxaddr(amx, params[2]);
*cpTemp = pPlayer->weapons[wpn].clip; *cpTemp = pPlayer->weapons[wpn].clip;
cpTemp = get_amxaddr(amx, params[3]); cpTemp = get_amxaddr(amx, params[3]);