ep1 static const
This commit is contained in:
parent
5d70bb0122
commit
291b83ed74
@ -869,7 +869,7 @@ void PlayerManager::OnClientPrintf(edict_t *pEdict, const char *szMsg)
|
|||||||
|
|
||||||
size_t nMsgLen = strlen(szMsg);
|
size_t nMsgLen = strlen(szMsg);
|
||||||
#if SOURCE_ENGINE == SE_EPISODEONE
|
#if SOURCE_ENGINE == SE_EPISODEONE
|
||||||
int nNumBitsWritten = 0;
|
static const int nNumBitsWritten = 0;
|
||||||
#else
|
#else
|
||||||
int nNumBitsWritten = pNetChan->GetNumBitsWritten(false); // SVC_Print uses unreliable netchan
|
int nNumBitsWritten = pNetChan->GetNumBitsWritten(false); // SVC_Print uses unreliable netchan
|
||||||
#endif
|
#endif
|
||||||
@ -914,7 +914,7 @@ void PlayerManager::OnPrintfFrameAction(unsigned int serial)
|
|||||||
while (!player.m_PrintfBuffer.empty())
|
while (!player.m_PrintfBuffer.empty())
|
||||||
{
|
{
|
||||||
#if SOURCE_ENGINE == SE_EPISODEONE
|
#if SOURCE_ENGINE == SE_EPISODEONE
|
||||||
int nNumBitsWritten = 0;
|
static const int nNumBitsWritten = 0;
|
||||||
#else
|
#else
|
||||||
int nNumBitsWritten = pNetChan->GetNumBitsWritten(false); // SVC_Print uses unreliable netchan
|
int nNumBitsWritten = pNetChan->GetNumBitsWritten(false); // SVC_Print uses unreliable netchan
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user