Fix linux build

This commit is contained in:
Peace-Maker 2016-03-01 16:32:13 +01:00
parent d5424cefdf
commit 7e9a8d6aec
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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;