ep1 static const

This commit is contained in:
Kyle Sanderson 2019-09-06 09:55:13 -07:00 committed by BotoX
parent 5d70bb0122
commit 291b83ed74

View File

@ -869,7 +869,7 @@ void PlayerManager::OnClientPrintf(edict_t *pEdict, const char *szMsg)
size_t nMsgLen = strlen(szMsg);
#if SOURCE_ENGINE == SE_EPISODEONE
int nNumBitsWritten = 0;
static const int nNumBitsWritten = 0;
#else
int nNumBitsWritten = pNetChan->GetNumBitsWritten(false); // SVC_Print uses unreliable netchan
#endif
@ -914,7 +914,7 @@ void PlayerManager::OnPrintfFrameAction(unsigned int serial)
while (!player.m_PrintfBuffer.empty())
{
#if SOURCE_ENGINE == SE_EPISODEONE
int nNumBitsWritten = 0;
static const int nNumBitsWritten = 0;
#else
int nNumBitsWritten = pNetChan->GetNumBitsWritten(false); // SVC_Print uses unreliable netchan
#endif