Comment unused variables (#184)

* Comment unused variables

* Comment out dead code
This commit is contained in:
Bohdan Shulyar 2021-06-18 11:00:09 +03:00 committed by GitHub
parent 7552c1df5e
commit fd6f48175f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View File

@ -66,7 +66,7 @@ int CHudMOTD::Draw( float fTime )
if( !m_bShow )
return 1;
gHUD.m_iNoConsolePrint |= 1 << 1;
bool bScroll;
//bool bScroll;
// find the top of where the MOTD should be drawn, so the whole thing is centered in the screen
int ypos = ( ScreenHeight - LINE_HEIGHT * m_iLines ) / 2; // shift it up slightly
char *ch = m_szMOTD;

View File

@ -270,7 +270,7 @@ decodeError:
uValueOut = '?';
bErrorOut = true;
return nBytes;
#if 0
decodeFinishedMaybeCESU8:
// Do we have a full UTF-16 surrogate pair that's been UTF-8 encoded afterwards?
// That is, do we have 0xD800-0xDBFF followed by 0xDC00-0xDFFF? If so, decode it all.
@ -281,6 +281,7 @@ decodeFinishedMaybeCESU8:
uMinValue = 0x10000;
}
goto decodeFinished;
#endif
}
//-----------------------------------------------------------------------------
@ -317,7 +318,7 @@ void Host_Say( edict_t *pEntity, int teamonly )
{
CBasePlayer *client;
int j;
char *p, *pc;
char *p; //, *pc;
char text[128];
char szTemp[256];
const char *cpSay = "say";

View File

@ -1484,7 +1484,7 @@ Vector CBaseEntity::FireBulletsPlayer( ULONG cShots, Vector vecSrc, Vector vecDi
Vector vecRight = gpGlobals->v_right;
Vector vecUp = gpGlobals->v_up;
float x = 0.0f, y = 0.0f;
float z;
//float z;
if( pevAttacker == NULL )
pevAttacker = pev; // the default attacker is ourselves