aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/client/CL_parse.java
diff options
context:
space:
mode:
authorHolger Zickner <[email protected]>2004-07-08 20:56:55 +0000
committerHolger Zickner <[email protected]>2004-07-08 20:56:55 +0000
commit6b36f9e0380b7c80aecdc78ef07a0cf473712416 (patch)
tree4a378b960321b3b7b07ef2effac295d0dd589eab /src/jake2/client/CL_parse.java
parent252832999fa43bce63ca4b643fab5d9dd51fccc4 (diff)
import of Jake2 version v_0_9
Diffstat (limited to 'src/jake2/client/CL_parse.java')
-rw-r--r--src/jake2/client/CL_parse.java26
1 files changed, 10 insertions, 16 deletions
diff --git a/src/jake2/client/CL_parse.java b/src/jake2/client/CL_parse.java
index f636ba0..ad19960 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.3 2004-07-08 20:24:29 hzi Exp $
+ * $Id: CL_parse.java,v 1.4 2004-07-08 20:56:49 hzi Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -25,24 +25,18 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
package jake2.client;
-import java.io.IOException;
-import java.io.RandomAccessFile;
-
import jake2.Defines;
import jake2.game.Cmd;
import jake2.game.entity_state_t;
-import jake2.qcommon.CM;
-import jake2.qcommon.Cbuf;
-import jake2.qcommon.Com;
-import jake2.qcommon.Cvar;
-import jake2.qcommon.FS;
-import jake2.qcommon.MSG;
-import jake2.qcommon.SZ;
-import jake2.qcommon.xcommand_t;
+import jake2.qcommon.*;
import jake2.render.model_t;
+import jake2.sound.S;
import jake2.sys.Sys;
import jake2.util.Lib;
+import java.io.IOException;
+import java.io.RandomAccessFile;
+
/**
* CL_parse
*/
@@ -200,7 +194,7 @@ public class CL_parse extends CL_view {
S.BeginRegistration();
CL.RegisterTEntSounds();
for (int i = 1; i < MAX_SOUNDS; i++) {
- if (cl.configstrings[CS_SOUNDS + i] == null || cl.configstrings[CS_SOUNDS + i] == "")
+ if (cl.configstrings[CS_SOUNDS + i] == null || cl.configstrings[CS_SOUNDS + i].equals("") || cl.configstrings[CS_SOUNDS + i].equals("\0"))
break;
cl.sound_precache[i] = S.RegisterSound(cl.configstrings[CS_SOUNDS + i]);
Sys.SendKeyEvents(); // pump message loop
@@ -555,7 +549,7 @@ public class CL_parse extends CL_view {
}
else if (i >= CS_SOUNDS && i < CS_SOUNDS + MAX_MODELS) {
if (cl.refresh_prepped)
- cl.sound_precache[i - CS_SOUNDS] = SND_DMA.RegisterSound(cl.configstrings[i]);
+ cl.sound_precache[i - CS_SOUNDS] = S.RegisterSound(cl.configstrings[i]);
}
else if (i >= CS_IMAGES && i < CS_IMAGES + MAX_MODELS) {
if (cl.refresh_prepped)
@@ -632,7 +626,7 @@ public class CL_parse extends CL_view {
if (null==cl.sound_precache[sound_num])
return;
- SND_DMA.StartSound(pos, ent, channel, cl.sound_precache[sound_num], volume, attenuation, ofs);
+ S.StartSound(pos, ent, channel, cl.sound_precache[sound_num], volume, attenuation, ofs);
}
public static void SHOWNET(String s) {
@@ -709,7 +703,7 @@ public class CL_parse extends CL_view {
case svc_print :
i = MSG.ReadByte(net_message);
if (i == PRINT_CHAT) {
- SND_DMA.StartLocalSound("misc/talk.wav");
+ S.StartLocalSound("misc/talk.wav");
con.ormask = 128;
}
Com.Printf(MSG.ReadString(net_message));