summaryrefslogtreecommitdiff
path: root/src/game/g_main.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2006-04-24 21:05:06 +0000
committerTim Angus <tim@ngus.net>2006-04-24 21:05:06 +0000
commitf7b88a4ed5a8c9347d9e40e0aee22c5a7011f60e (patch)
tree336304b3b0476b92fb11bc6f68d5c93aa261dd46 /src/game/g_main.c
parent523411fb188b851ed46e72acfd9bd981abf432fc (diff)
* Removed some \n from server connection messages
* Removed nextmap cvar and associated code, replaced with "advanceMapRotation" command * Rework the text displayed during votes to be more verbose * "destroy" command now only works when cheats are enabled * Voting UI is now a frontend for "clientkick" instead of plain "kick"
Diffstat (limited to 'src/game/g_main.c')
-rw-r--r--src/game/g_main.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c
index 4a4fa2ca..98978b0a 100644
--- a/src/game/g_main.c
+++ b/src/game/g_main.c
@@ -1388,9 +1388,8 @@ void BeginIntermission( void )
=============
ExitLevel
-When the intermission has been exited, the server is either killed
-or moved to a new level based on the "nextmap" cvar
-
+When the intermission has been exited, the server is either moved
+to a new map based on the map rotation or the current map restarted
=============
*/
void ExitLevel( void )
@@ -1401,7 +1400,7 @@ void ExitLevel( void )
if( G_MapRotationActive( ) )
G_AdvanceMapRotation( );
else
- trap_SendConsoleCommand( EXEC_APPEND, "vstr nextmap\n" );
+ trap_SendConsoleCommand( EXEC_APPEND, "map_restart\n" );
level.changemap = NULL;
level.intermissiontime = 0;
@@ -1810,14 +1809,7 @@ void CheckVote( void )
{
level.voteExecuteTime = 0;
- //SUPAR HAK
- if( !Q_stricmp( level.voteString, "vstr nextmap" ) )
- {
- level.lastWin = PTE_NONE;
- LogExit( "Vote for next map." );
- }
- else
- trap_SendConsoleCommand( EXEC_APPEND, va( "%s\n", level.voteString ) );
+ trap_SendConsoleCommand( EXEC_APPEND, va( "%s\n", level.voteString ) );
}
if( !level.voteTime )