diff options
author | Rene Stoeckel <[email protected]> | 2004-11-06 20:58:11 +0000 |
---|---|---|
committer | Rene Stoeckel <[email protected]> | 2004-11-06 20:58:11 +0000 |
commit | a14fc96bf2af664ec1d570f7baf22dcfe9fdeacc (patch) | |
tree | 7649be4f303c99c0fff8758cc6ec9ddd3c1d9db6 /src/jake2/server | |
parent | fd7c569aa7e2390b30ce69855122b73b4426380e (diff) |
multiplayer server now works
Diffstat (limited to 'src/jake2/server')
-rw-r--r-- | src/jake2/server/SV_INIT.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/jake2/server/SV_INIT.java b/src/jake2/server/SV_INIT.java index 0c1c5ae..05aded0 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.9 2004-09-22 19:22:12 salomo Exp $ +// $Id: SV_INIT.java,v 1.10 2004-11-06 20:58:11 salomo Exp $ package jake2.server; import jake2.Defines; @@ -359,9 +359,10 @@ public class SV_INIT { svs.spawncount = Lib.rand(); //svs.clients = Z_Malloc(sizeof(client_t) * maxclients.value); svs.clients = new client_t[(int) SV_MAIN.maxclients.value]; - for (int n = 0; n < svs.clients.length; n++) + for (int n = 0; n < svs.clients.length; n++) { svs.clients[n] = new client_t(); - + svs.clients[n].serverindex = n; + } svs.num_client_entities = ((int) SV_MAIN.maxclients.value) * Defines.UPDATE_BACKUP * 64; //ok. |