aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/server/SV_INIT.java
diff options
context:
space:
mode:
authorRene Stoeckel <[email protected]>2005-02-06 19:27:24 +0000
committerRene Stoeckel <[email protected]>2005-02-06 19:27:24 +0000
commita757e7e143b4a2d79f17e0f18161add84e98c8bd (patch)
tree7b204721d21da839ea42a13ad83e478b884f0936 /src/jake2/server/SV_INIT.java
parent2b10843110de639e93da3fd505beb11105ed212e (diff)
coop game level switching bug.
Diffstat (limited to 'src/jake2/server/SV_INIT.java')
-rw-r--r--src/jake2/server/SV_INIT.java17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/jake2/server/SV_INIT.java b/src/jake2/server/SV_INIT.java
index 05aded0..98bc39d 100644
--- a/src/jake2/server/SV_INIT.java
+++ b/src/jake2/server/SV_INIT.java
@@ -19,7 +19,7 @@
*/
// Created on 14.01.2004 by RST.
-// $Id: SV_INIT.java,v 1.10 2004-11-06 20:58:11 salomo Exp $
+// $Id: SV_INIT.java,v 1.11 2005-02-06 19:27:24 salomo Exp $
package jake2.server;
import jake2.Defines;
@@ -195,15 +195,14 @@ public class SV_INIT {
} catch (Exception e) {
}
- svs.spawncount++; // any partially connected client will be
- // restarted
+ // any partially connected client will be restarted
+ svs.spawncount++;
sv.state = Defines.ss_dead;
Globals.server_state = sv.state;
// wipe the entire per-level structure
- //memset(sv, 0, sizeof(sv));
sv = new server_t();
svs.realtime = 0;
@@ -407,13 +406,9 @@ public class SV_INIT {
*
* map tram.cin+jail_e3 ======================
*/
- public static void SV_Map(boolean attractloop, String levelstring,
- boolean loadgame) {
- //char level[MAX_QPATH];
- //char *ch;
- int l;
- //char spawnpoint[MAX_QPATH];
+ public static void SV_Map(boolean attractloop, String levelstring, boolean loadgame) {
+ int l;
String level, ch, spawnpoint;
sv.loadgame = loadgame;
@@ -447,7 +442,7 @@ public class SV_INIT {
}
//ZOID special hack for end game screen in coop mode
- if (Cvar.VariableValue("coop") != 0 && !level.equals("victory.pcx"))
+ if (Cvar.VariableValue("coop") != 0 && level.equals("victory.pcx"))
Cvar.Set("nextserver", "gamemap \"*base1\"");
// if there is a $, use the remainder as a spawnpoint