diff --git a/code/game/g_main.c b/code/game/g_main.c
index 71e8318..70b5b3e 100644
a
|
b
|
void ClearDuelData(qboolean all); |
1580 | 1580 | void ExitLevel (void) { |
1581 | 1581 | int i; |
1582 | 1582 | gclient_t *cl; |
1583 | | #ifndef SMOKINGUNS |
1584 | 1583 | char nextmap[MAX_STRING_CHARS]; |
| 1584 | #ifndef SMOKINGUNS |
1585 | 1585 | char d1[MAX_STRING_CHARS]; |
1586 | 1586 | #endif |
1587 | 1587 | |
… |
… |
void ExitLevel (void) { |
1612 | 1612 | trap_SendConsoleCommand( EXEC_APPEND, "vstr nextmap\n" ); |
1613 | 1613 | } |
1614 | 1614 | #else |
1615 | | trap_SendConsoleCommand( EXEC_APPEND, "vstr nextmap\n" ); |
| 1615 | trap_Cvar_VariableStringBuffer( "nextmap", nextmap, sizeof(nextmap) ); |
| 1616 | if ( Q_stricmp( nextmap , "" ) ){ |
| 1617 | trap_SendConsoleCommand( EXEC_APPEND, "vstr nextmap\n" ); |
| 1618 | } else { |
| 1619 | Com_Printf("No nextmap specified! Restarting current map in 5 seconds.\n"); |
| 1620 | trap_SendConsoleCommand( EXEC_APPEND, "map_restart 5\n" ); |
| 1621 | } |
1616 | 1622 | #endif |
1617 | 1623 | |
1618 | 1624 | level.changemap = NULL; |