summarylogtreecommitdiffstats
path: root/map_command_fix.patch
blob: f1b912214450c8a84e79e8086358c39e35a799bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff -ura quake2-r0.16.2/src/server/sv_ccmds.c quake2-r0.16.2-fix/src/server/sv_ccmds.c
--- quake2-r0.16.2/src/server/sv_ccmds.c	2002-01-03 00:10:14.000000000 -0500
+++ quake2-r0.16.2-fix/src/server/sv_ccmds.c	2018-02-02 20:51:04.800131348 -0500
@@ -508,6 +508,7 @@
 	{
 		// wipe all the *.sav files
 		SV_WipeSavegame ("current");
+        ++map;
 	}
 	else
 	{	// save the map just exited
@@ -533,7 +534,7 @@
 	}
 
 	// start up the next map
-	SV_Map (false, Cmd_Argv(1), false );
+	SV_Map (false, map, false );
 
 	// archive server state
 	strncpy (svs.mapcmd, Cmd_Argv(1), sizeof(svs.mapcmd)-1);