Fix linux build
This commit is contained in:
parent
d5424cefdf
commit
7e9a8d6aec
@ -5,6 +5,7 @@
|
||||
class CDemoFile;
|
||||
class bf_read;
|
||||
class ServerClass;
|
||||
class CGameInfo;
|
||||
|
||||
class IDemoRecorder
|
||||
{
|
||||
@ -36,4 +37,4 @@ public:
|
||||
|
||||
virtual void ResetDemoInterpolation(void) = 0;
|
||||
};
|
||||
#endif
|
||||
#endif
|
||||
|
@ -231,6 +231,8 @@ static cell_t Native_BroadcastConsoleMessage(IPluginContext *pContext, const cel
|
||||
buffer[len++] = '\n';
|
||||
buffer[len] = '\0';
|
||||
|
||||
static char fmt[] = "%s";
|
||||
|
||||
if (pBroadcastPrintf)
|
||||
{
|
||||
unsigned char vstk[sizeof(void *) + sizeof(char *) * 2];
|
||||
@ -238,7 +240,7 @@ static cell_t Native_BroadcastConsoleMessage(IPluginContext *pContext, const cel
|
||||
|
||||
*(void **)vptr = (void *)hltvserver->GetBaseServer();
|
||||
vptr += sizeof(void *);
|
||||
*(char **)vptr = "%s";
|
||||
*(char **)vptr = fmt;
|
||||
vptr += sizeof(char *);
|
||||
*(char **)vptr = buffer;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user