diff options
author | /dev/humancontroller <devhc@example.com> | 2017-04-13 11:30:00 +0000 |
---|---|---|
committer | /dev/humancontroller <devhc@example.com> | 2017-04-15 17:24:16 +0200 |
commit | c596670999d843b430df0c4fe0eeabd148614638 (patch) | |
tree | 6290cc624bbbeaa50e2a3c3d7bc705721867e971 /src/game/g_main.c | |
parent | a989cd97673eb20dbd9a2fed5723832d5cd39512 (diff) |
remove a bunch of unused variables and some no-op code
Diffstat (limited to 'src/game/g_main.c')
-rw-r--r-- | src/game/g_main.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c index d7cc6d4..d9dcd66 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -838,7 +838,6 @@ void G_InitGame( int levelTime, int randomSeed, int restart ) { char serverinfo[ MAX_INFO_STRING ]; qtime_t qt; - int t; trap_GetServerinfo( serverinfo, sizeof( serverinfo ) ); @@ -846,7 +845,7 @@ void G_InitGame( int levelTime, int randomSeed, int restart ) G_LogPrintf( "------------------------------------------------------------\n" ); G_LogPrintf( "InitGame: %s\n", serverinfo ); - t = trap_RealTime( &qt ); + trap_RealTime( &qt ); G_LogPrintf("RealTime: %04i/%02i/%02i %02i:%02i:%02i\n", qt.tm_year+1900, qt.tm_mon+1, qt.tm_mday, qt.tm_hour, qt.tm_min, qt.tm_sec ); @@ -3311,7 +3310,6 @@ void G_RunFrame( int levelTime ) int i; gentity_t *ent; int msec; - int start, end; // if we are waiting for the level to restart, do nothing if( level.restarted ) @@ -3348,7 +3346,6 @@ void G_RunFrame( int levelTime ) // // go through all allocated objects // - start = trap_Milliseconds( ); ent = &g_entities[ 0 ]; for( i = 0; i < level.num_entities; i++, ent++ ) @@ -3427,9 +3424,6 @@ void G_RunFrame( int levelTime ) G_RunThink( ent ); } - end = trap_Milliseconds(); - - start = trap_Milliseconds(); // perform final fixups on the players ent = &g_entities[ 0 ]; @@ -3445,8 +3439,6 @@ void G_RunFrame( int levelTime ) // save position information for all active clients G_UnlaggedStore( ); - end = trap_Milliseconds(); - //TA: G_CountSpawns( ); G_CalculateBuildPoints( ); |