summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRene Stoeckel <[email protected]>2005-02-12 21:43:48 +0000
committerRene Stoeckel <[email protected]>2005-02-12 21:43:48 +0000
commit9726689414140e7a2ddb4e1faf0f415fc12bd557 (patch)
tree862c4ea9e048a787630a57aea3dc78fb26af96ca
parentce96a11ba2467b2671b433a5ce969e702d5a7064 (diff)
beatification
-rw-r--r--src/jake2/game/PlayerClient.java15
-rw-r--r--src/jake2/server/SV_INIT.java6
2 files changed, 6 insertions, 15 deletions
diff --git a/src/jake2/game/PlayerClient.java b/src/jake2/game/PlayerClient.java
index 80cdbe8..68815f8 100644
--- a/src/jake2/game/PlayerClient.java
+++ b/src/jake2/game/PlayerClient.java
@@ -19,7 +19,7 @@
*/
// Created on 28.12.2003 by RST.
-// $Id: PlayerClient.java,v 1.7 2005-02-06 19:10:48 salomo Exp $
+// $Id: PlayerClient.java,v 1.8 2005-02-12 21:43:02 salomo Exp $
package jake2.game;
import jake2.Defines;
@@ -535,17 +535,8 @@ public class PlayerClient {
target = spot.targetname;
if (target == null)
target = "";
- if (Lib.Q_stricmp(GameBase.game.spawnpoint, target) == 0) { // this
- // is a
- // coop
- // spawn
- // point
- // for
- // one
- // of
- // the
- // clients
- // here
+ if (Lib.Q_stricmp(GameBase.game.spawnpoint, target) == 0) {
+ // this is a coop spawn point for one of the clients here
index--;
if (0 == index)
return spot; // this is it
diff --git a/src/jake2/server/SV_INIT.java b/src/jake2/server/SV_INIT.java
index 98bc39d..525bd03 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.11 2005-02-06 19:27:24 salomo Exp $
+// $Id: SV_INIT.java,v 1.12 2005-02-12 21:43:48 salomo Exp $
package jake2.server;
import jake2.Defines;
@@ -355,10 +355,10 @@ public class SV_INIT {
| Defines.CVAR_LATCH);
}
- svs.spawncount = Lib.rand();
- //svs.clients = Z_Malloc(sizeof(client_t) * maxclients.value);
+ svs.spawncount = Lib.rand();
svs.clients = new client_t[(int) SV_MAIN.maxclients.value];
for (int n = 0; n < svs.clients.length; n++) {
+ // fixed nasty multiplayer bug (rst).
svs.clients[n] = new client_t();
svs.clients[n].serverindex = n;
}