clean up return statements a bit more

This commit is contained in:
/dev/humancontroller 2013-04-14 18:33:27 +02:00 committed by Zack Middleton
parent 9d626b6a12
commit 9e9d6fa52c
3 changed files with 4 additions and 9 deletions

View File

@ -3455,8 +3455,6 @@ void BotMoveToGoal(bot_moveresult_t *result, int movestate, bot_goal_t *goal, in
if (result->blocked) ms->reachability_time -= 10 * ms->thinktime; if (result->blocked) ms->reachability_time -= 10 * ms->thinktime;
//copy the last origin //copy the last origin
VectorCopy(ms->origin, ms->lastorigin); VectorCopy(ms->origin, ms->lastorigin);
//return the movement result
return;
} //end of the function BotMoveToGoal } //end of the function BotMoveToGoal
//=========================================================================== //===========================================================================
// //

View File

@ -2539,8 +2539,9 @@ static void Com_WriteCDKey( const char *filename, const char *ikey ) {
out: out:
#ifndef _WIN32 #ifndef _WIN32
umask(savedumask); umask(savedumask);
#else
;
#endif #endif
return;
} }
#endif #endif

View File

@ -1668,7 +1668,7 @@ static void ComputeStageIteratorFunc( void )
if ( shader.isSky ) if ( shader.isSky )
{ {
shader.optimalStageIteratorFunc = RB_StageIteratorSky; shader.optimalStageIteratorFunc = RB_StageIteratorSky;
goto done; return;
} }
if ( r_ignoreFastPath->integer ) if ( r_ignoreFastPath->integer )
@ -1694,7 +1694,7 @@ static void ComputeStageIteratorFunc( void )
if ( !shader.numDeforms ) if ( !shader.numDeforms )
{ {
shader.optimalStageIteratorFunc = RB_StageIteratorVertexLitTexture; shader.optimalStageIteratorFunc = RB_StageIteratorVertexLitTexture;
goto done; return;
} }
} }
} }
@ -1720,16 +1720,12 @@ static void ComputeStageIteratorFunc( void )
if ( shader.multitextureEnv ) if ( shader.multitextureEnv )
{ {
shader.optimalStageIteratorFunc = RB_StageIteratorLightmappedMultitexture; shader.optimalStageIteratorFunc = RB_StageIteratorLightmappedMultitexture;
goto done;
} }
} }
} }
} }
} }
} }
done:
return;
} }
typedef struct { typedef struct {