aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/qcommon/MSG.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/jake2/qcommon/MSG.java')
-rw-r--r--src/jake2/qcommon/MSG.java8
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);