From 1a101824a2f9134ca16f715a5100a6c4478e8e65 Mon Sep 17 00:00:00 2001 From: Carsten Weisse Date: Thu, 21 Oct 2004 01:50:49 +0000 Subject: string bugs fixed --- src/jake2/client/CL_parse.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/jake2/client/CL_parse.java') diff --git a/src/jake2/client/CL_parse.java b/src/jake2/client/CL_parse.java index ecc1abe..9e8001d 100644 --- a/src/jake2/client/CL_parse.java +++ b/src/jake2/client/CL_parse.java @@ -2,7 +2,7 @@ * CL_parse.java * Copyright (C) 2004 * - * $Id: CL_parse.java,v 1.9 2004-09-22 19:22:07 salomo Exp $ + * $Id: CL_parse.java,v 1.10 2004-10-21 01:50:49 cawe Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -395,7 +395,7 @@ public class CL_parse { //s = t + 1; } - if (Globals.cl_noskins.value != 0 || s.length() != 0) { + if (Globals.cl_noskins.value != 0 || s.length() == 0) { model_filename = ("players/male/tris.md2"); weapon_filename = ("players/male/weapon.md2"); @@ -507,7 +507,7 @@ public class CL_parse { ci = Globals.cl.clientinfo[player]; - LoadClientinfo(ci, s); + LoadClientinfo(ci, new String(s)); } /* @@ -526,7 +526,7 @@ public class CL_parse { s = MSG.ReadString(Globals.net_message); olds = Globals.cl.configstrings[i]; - Globals.cl.configstrings[i] = s; + Globals.cl.configstrings[i] = new String(s); // do something apropriate -- cgit v1.2.3