diff options
author | Rene Stoeckel <[email protected]> | 2005-02-19 21:22:34 +0000 |
---|---|---|
committer | Rene Stoeckel <[email protected]> | 2005-02-19 21:22:34 +0000 |
commit | 7a0fb114c20563e83b49d72e5dec72ab67aed572 (patch) | |
tree | 50ab9395de1c589136572d62527debb8a1ac2527 /src | |
parent | e8fe61aaf5b09c76a354828ce103b0190844cc84 (diff) |
wrong error message fixed when loading a game failes
Diffstat (limited to 'src')
-rw-r--r-- | src/jake2/server/SV_CCMDS.java | 6 | ||||
-rw-r--r-- | src/jake2/server/SV_MAIN.java | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/jake2/server/SV_CCMDS.java b/src/jake2/server/SV_CCMDS.java index 18a7f91..e84762f 100644 --- a/src/jake2/server/SV_CCMDS.java +++ b/src/jake2/server/SV_CCMDS.java @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // Created on 18.01.2004 by RST. -// $Id: SV_CCMDS.java,v 1.13 2004-10-07 14:13:07 hzi Exp $ +// $Id: SV_CCMDS.java,v 1.14 2005-02-19 21:21:19 salomo Exp $ package jake2.server; @@ -465,7 +465,7 @@ public class SV_CCMDS { ============== */ public static void SV_ReadServerFile() { - String filename, name = "", string, comment, mapcmd; + String filename="", name = "", string, comment, mapcmd; try { QuakeFile f; @@ -507,7 +507,7 @@ public class SV_CCMDS { GameSave.ReadGame(filename); } catch (Exception e) { - Com.Printf("Couldn't read file " + name + "\n"); + Com.Printf("Couldn't read file " + filename + "\n"); e.printStackTrace(); } } diff --git a/src/jake2/server/SV_MAIN.java b/src/jake2/server/SV_MAIN.java index ea2a8ad..ef3bef2 100644 --- a/src/jake2/server/SV_MAIN.java +++ b/src/jake2/server/SV_MAIN.java @@ -19,7 +19,7 @@ */ // Created on 13.01.2004 by RST. -// $Id: SV_MAIN.java,v 1.9 2004-10-17 21:31:32 cawe Exp $ +// $Id: SV_MAIN.java,v 1.10 2005-02-19 21:22:34 salomo Exp $ package jake2.server; import jake2.Defines; @@ -993,13 +993,13 @@ public class SV_MAIN { // send it twice // stagger the packets to crutch operating system limited buffers - for (i = 0; i < SV_MAIN.maxclients.value; i++) { + for (i = 0; i < SV_INIT.svs.clients.length; i++) { cl = SV_INIT.svs.clients[i]; if (cl.state >= Defines.cs_connected) Netchan.Transmit(cl.netchan, Globals.net_message.cursize, Globals.net_message.data); } - for (i = 0; i < SV_MAIN.maxclients.value; i++) { + for (i = 0; i < SV_INIT.svs.clients.length; i++) { cl = SV_INIT.svs.clients[i]; if (cl.state >= Defines.cs_connected) Netchan.Transmit(cl.netchan, Globals.net_message.cursize, |