diff options
author | Carsten Weisse <[email protected]> | 2005-01-17 21:49:40 +0000 |
---|---|---|
committer | Carsten Weisse <[email protected]> | 2005-01-17 21:49:40 +0000 |
commit | 1d4a1ce927618b7ffec4282038e34ad98e3d25fa (patch) | |
tree | ddf6020d16196c0877dcf2b9bb53822cd344ee2e /src/jake2 | |
parent | 62ea80654b0728a72a1f234b14eecb24a5b1d536 (diff) |
garbage optimized
Diffstat (limited to 'src/jake2')
-rw-r--r-- | src/jake2/client/CL_parse.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/jake2/client/CL_parse.java b/src/jake2/client/CL_parse.java index 611789d..edb68db 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.18 2004-10-29 16:35:00 cawe Exp $ + * $Id: CL_parse.java,v 1.19 2005-01-17 21:49:40 cawe Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -34,6 +34,7 @@ import jake2.render.model_t; import jake2.sound.S; import jake2.sys.Sys; import jake2.util.Lib; +import jake2.util.Math3D; import java.io.IOException; import java.io.RandomAccessFile; @@ -506,7 +507,7 @@ public class CL_parse { ci = Globals.cl.clientinfo[player]; - LoadClientinfo(ci, new String(s)); + LoadClientinfo(ci, s); } /* @@ -525,7 +526,7 @@ public class CL_parse { s = MSG.ReadString(Globals.net_message); olds = Globals.cl.configstrings[i]; - Globals.cl.configstrings[i] = new String(s); + Globals.cl.configstrings[i] = s; // do something apropriate @@ -568,11 +569,11 @@ public class CL_parse { * ===================================================================== */ + private static final float[] pos_v = { 0, 0, 0 }; /* * ================== CL_ParseStartSoundPacket ================== */ public static void ParseStartSoundPacket() { - float[] pos_v = { 0, 0, 0 }; float pos[]; int channel, ent; int sound_num; @@ -614,7 +615,7 @@ public class CL_parse { if ((flags & Defines.SND_POS) != 0) { // positioned in space MSG.ReadPos(Globals.net_message, pos_v); - + // is ok. sound driver copies pos = pos_v; } else // use entity number |