From 4f13ea26c4f47e54e66926f0700cf631e7bb3352 Mon Sep 17 00:00:00 2001 From: Holger Zickner Date: Thu, 8 Jul 2004 15:58:48 +0000 Subject: import of Jake2 version hannover --- src/jake2/qcommon/MSG.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/jake2/qcommon/MSG.java') diff --git a/src/jake2/qcommon/MSG.java b/src/jake2/qcommon/MSG.java index cdad707..3d18798 100644 --- a/src/jake2/qcommon/MSG.java +++ b/src/jake2/qcommon/MSG.java @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // Created on 29.11.2003 by RST. -// $Id: MSG.java,v 1.1 2004-07-07 19:59:31 hzi Exp $ +// $Id: MSG.java,v 1.2 2004-07-08 15:58:46 hzi Exp $ package jake2.qcommon; @@ -479,19 +479,17 @@ public class MSG extends GameBase { public static byte readbuf[] = new byte[2048]; public static String ReadString(sizebuf_t msg_read) { - String string = ""; byte c; int l = 0; do { - c = (byte) ReadByte(msg_read); + c = (byte)ReadByte(msg_read); if (c == -1 || c == 0) break; readbuf[l] = c; l++; - } - while (l < 2047); + } while (l < 2047); //readbuf[l] = 0; return new String(readbuf, 0, l); -- cgit v1.2.3