diff options
author | Holger Zickner <[email protected]> | 2004-07-08 15:58:48 +0000 |
---|---|---|
committer | Holger Zickner <[email protected]> | 2004-07-08 15:58:48 +0000 |
commit | 4f13ea26c4f47e54e66926f0700cf631e7bb3352 (patch) | |
tree | a9d434fc462417bb981b1565fd64cea5e7c82c15 /src/jake2/qcommon/MSG.java | |
parent | 76839da3568e20f51220584d1fc92841b216505a (diff) |
import of Jake2 version hannover
Diffstat (limited to 'src/jake2/qcommon/MSG.java')
-rw-r--r-- | src/jake2/qcommon/MSG.java | 8 |
1 files changed, 3 insertions, 5 deletions
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); |