mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-09 03:18:25 +00:00
Fixed the fix for the fix of dropall errors (#807).
This commit is contained in:
parent
dca53d61c6
commit
04e5db5420
@ -3312,7 +3312,7 @@ public Action Command_Drop(int client, const char[] command, int argc)
|
|||||||
|
|
||||||
int iWeapon = GetEntPropEnt(client, Prop_Data, "m_hActiveWeapon");
|
int iWeapon = GetEntPropEnt(client, Prop_Data, "m_hActiveWeapon");
|
||||||
|
|
||||||
if(iWeapon != -1 && IsValidEntity(iWeapon))
|
if(iWeapon != -1 && IsValidEntity(iWeapon) && GetEntPropEnt(iWeapon, Prop_Send, "m_hOwnerEntity") == client)
|
||||||
{
|
{
|
||||||
CS_DropWeapon(client, iWeapon, true);
|
CS_DropWeapon(client, iWeapon, true);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user