diff options
Diffstat (limited to 'src/game/g_main.c')
-rw-r--r-- | src/game/g_main.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c index 4fd2a04e..d91b685d 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -2066,12 +2066,23 @@ void G_ExecuteVote( team_t team ) switch( v->cons ) { case VC_RESTART: + { + restartVotePms_t *p = &v->pms.restart; + trap_Cvar_Set( "g_nextLayout", p->layout ? p->layout : "" ); + trap_Cvar_Update( &g_nextLayout ); + if( p->layout ) + BG_Free( p->layout ); G_PerformMapRestart(); break; + } case VC_MAP: case VC_NEXTMAP: { mapVotePms_t *p = &v->pms.map; + trap_Cvar_Set( "g_nextLayout", p->layout ? p->layout : "" ); + trap_Cvar_Update( &g_nextLayout ); + if( p->layout ) + BG_Free( p->layout ); if( v->cons == VC_NEXTMAP ) { trap_Cvar_Set( "g_nextMap", p->map ); |