Fixed a bug where SP forwards were not unregistered
Fixed a bug where pfn_touch might not be called correctly
This commit is contained in:
@ -236,8 +236,11 @@ void ServerActivate(edict_t *pEdictList, int edictCount, int clientMax)
|
||||
for(int f = 1; f <= gpGlobals->maxClients;f++)
|
||||
g_player_edicts[f]=pEdictList + f;
|
||||
Msg.clear();
|
||||
register int i = 0;
|
||||
register int i = 0, j = 0;
|
||||
for (i=0; i<256; i++) {
|
||||
for (j=0; j<256; j++)
|
||||
if (msgHooks[i].at(j) != -1)
|
||||
MF_UnregisterSPForward(msgHooks[i].at(j));
|
||||
msgHooks[i].clear();
|
||||
msgBlocks[i] = 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user