entWatch4: Rename iOwner to iClient.

Seems more logical this way.
This commit is contained in:
zaCade
2019-04-06 10:58:19 +02:00
parent bc3fae77d4
commit 7eb8b766c6
3 changed files with 24 additions and 24 deletions
+7 -7
View File
@@ -370,9 +370,9 @@ public void OnClientDisconnect(int client)
{
CItem item = g_hArray_Items.Get(index);
if (item.bOwner && item.iOwner == client)
if (item.bClient && item.iClient == client)
{
item.iOwner = INVALID_ENT_REFERENCE;
item.iClient = INVALID_ENT_REFERENCE;
Call_StartForward(g_hFwd_OnClientItemDisconnect);
Call_PushCell(client);
@@ -396,9 +396,9 @@ public void OnClientDeath(Event hEvent, const char[] sEvent, bool bDontBroadcast
{
CItem item = g_hArray_Items.Get(index);
if (item.bOwner && item.iOwner == client)
if (item.bClient && item.iClient == client)
{
item.iOwner = INVALID_ENT_REFERENCE;
item.iClient = INVALID_ENT_REFERENCE;
Call_StartForward(g_hFwd_OnClientItemDeath);
Call_PushCell(client);
@@ -422,7 +422,7 @@ public Action OnWeaponPickup(int client, int weapon)
if (item.bWeapon && item.iWeapon == weapon)
{
item.iOwner = client;
item.iClient = client;
Call_StartForward(g_hFwd_OnClientItemPickup);
Call_PushCell(client);
@@ -448,7 +448,7 @@ public Action OnWeaponDrop(int client, int weapon)
if (item.bWeapon && item.iWeapon == weapon)
{
item.iOwner = INVALID_ENT_REFERENCE;
item.iClient = INVALID_ENT_REFERENCE;
Call_StartForward(g_hFwd_OnClientItemDrop);
Call_PushCell(client);
@@ -477,7 +477,7 @@ public Action OnButtonPress(int button, int client)
CItem item = g_hArray_Items.Get(index);
if ((item.bButton && item.iButton == button) &&
(item.bOwner && item.iOwner == client))
(item.bClient && item.iClient == client))
{
Action aResult;
Call_StartForward(g_hFwd_OnClientItemCanActivate);