mirror of
https://github.com/hermansimensen/eventqueue-fix.git
synced 2025-12-06 18:08:27 +00:00
formatting
This commit is contained in:
parent
fb7e956db0
commit
5348e9ac70
@ -1,4 +1,3 @@
|
||||
|
||||
//#define DEBUG
|
||||
|
||||
#define PLUGIN_NAME "EventQueue fix"
|
||||
@ -69,7 +68,8 @@ public void OnClientPutInServer(int client)
|
||||
if(g_aPlayerEvents[client] == null)
|
||||
{
|
||||
g_aPlayerEvents[client] = new ArrayList(sizeof(event_t));
|
||||
} else
|
||||
}
|
||||
else
|
||||
{
|
||||
g_aPlayerEvents[client].Clear();
|
||||
}
|
||||
@ -147,7 +147,9 @@ void LoadDHooks()
|
||||
public MRESReturn DHook_AcceptInput(int pThis, Handle hReturn, Handle hParams)
|
||||
{
|
||||
if(DHookIsNullParam(hParams, 2))
|
||||
{
|
||||
return MRES_Ignored;
|
||||
}
|
||||
|
||||
int client = DHookGetParam(hParams, 2);
|
||||
char input[64];
|
||||
@ -157,8 +159,6 @@ public MRESReturn DHook_AcceptInput(int pThis, Handle hReturn, Handle hParams)
|
||||
char args[2][64];
|
||||
ExplodeString(variantString, " ", args, 2, 64);
|
||||
|
||||
|
||||
|
||||
return MRES_Ignored;
|
||||
}
|
||||
|
||||
@ -245,4 +245,4 @@ public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3
|
||||
g_aPlayerEvents[client].SetArray(i, event);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user