diff --git a/code/cgame/cg_players.c b/code/cgame/cg_players.c index 53c7bc9..6ecc6d1 100644 --- a/code/cgame/cg_players.c +++ b/code/cgame/cg_players.c @@ -2131,6 +2131,7 @@ void CG_NewDecoyInfo( int decoyNum ) { //First thing's first. We need to isolate these into three strings: model, char, skin { + int len; //step 1, take the first bit of the string and put it in the charName var. if ( ( temp = strchr( v, '/') ) == NULL ) { //if there's no slash Q_strncpyz( ci->charName, v, sizeof( ci->charName ) ); //just set it @@ -2154,7 +2155,7 @@ void CG_NewDecoyInfo( int decoyNum ) { } } else { temp++; //bypass the slash - int len = strlen(temp); + len = strlen(temp); temp2 = strchr( temp, '/' ); //if there was a model defined, but no skin diff --git a/code/cgame/cg_playerstate.c b/code/cgame/cg_playerstate.c index f100562..a7f8b36 100644 --- a/code/cgame/cg_playerstate.c +++ b/code/cgame/cg_playerstate.c @@ -77,7 +77,6 @@ CG_DamageFeedback ============== */ void CG_DamageFeedback( int yawByte, int pitchByte, int damage, int shielddamage ) { - float left, front, up; float kick; int health; float scale; diff --git a/code/cgame/cg_scoreboard.c b/code/cgame/cg_scoreboard.c index 09c8784..d4a1acc 100644 --- a/code/cgame/cg_scoreboard.c +++ b/code/cgame/cg_scoreboard.c @@ -373,12 +373,6 @@ static void CG_DrawClientScore( int y, score_t *score, float *color, float fade, //char /**worstEnemy,*/*faveWeapon=0; //float hcolor[4]; //gitem_t * item; - int inIntermission/*,length*/; - - inIntermission = ( - (cg.snap->ps.pm_type==PM_INTERMISSION) - || (cg.intermissionStarted) - || (cg.predictedPlayerState.pm_type==PM_INTERMISSION) ); if ( score->client < 0 || score->client >= cgs.maxclients ) diff --git a/code/cgame/cg_view.c b/code/cgame/cg_view.c index 4954cfe..fdf20e2 100644 --- a/code/cgame/cg_view.c +++ b/code/cgame/cg_view.c @@ -1172,8 +1172,6 @@ Fixed fov at intermissions, otherwise account for fov variable and zooms. static int CG_CalcFov( void ) { float x; - float phase; - float v; int contents; float fov_x, fov_y; int inwater;