forked from UNLOZE/sm-plugins
entWatch4: Rename iOwner to iClient.
Seems more logical this way.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user