Fix sending messages to locally connected spectators
This commit is contained in:
parent
307a8037d6
commit
9f5ef34087
@ -250,11 +250,12 @@ static bool BroadcastEventLocal(IHLTVServer *server, IGameEvent *event, bool bRe
|
||||
{
|
||||
unsigned char vstk[sizeof(void *) + sizeof(IGameEvent *) + sizeof(bool)];
|
||||
unsigned char *vptr = vstk;
|
||||
|
||||
*(void **)vptr = (void *)server;
|
||||
|
||||
IServer *iserver = server->GetBaseServer();
|
||||
*(void **)vptr = (void *)((intptr_t)iserver - 8);
|
||||
vptr += sizeof(void *);
|
||||
*(IGameEvent **)vptr = event;
|
||||
vptr += sizeof(char *);
|
||||
vptr += sizeof(IGameEvent *);
|
||||
*(bool *)vptr = bReliable;
|
||||
|
||||
pBroadcastEventLocal->Execute(vstk, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user