aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/client/CL_pred.java
diff options
context:
space:
mode:
authorHolger Zickner <[email protected]>2004-07-19 19:22:57 +0000
committerHolger Zickner <[email protected]>2004-07-19 19:22:57 +0000
commit09ccacb4e4147050811b286c5bedcd68a4c23991 (patch)
tree10f4321f36a41ae634edf7323694db67c0809307 /src/jake2/client/CL_pred.java
parente229dac5a749c49f6a02e696304d66b5f3d6feb9 (diff)
profiling
Diffstat (limited to 'src/jake2/client/CL_pred.java')
-rw-r--r--src/jake2/client/CL_pred.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/jake2/client/CL_pred.java b/src/jake2/client/CL_pred.java
index 0b0e2ab..7f6a279 100644
--- a/src/jake2/client/CL_pred.java
+++ b/src/jake2/client/CL_pred.java
@@ -2,7 +2,7 @@
* CL_pred.java
* Copyright (C) 2004
*
- * $Id: CL_pred.java,v 1.3 2004-07-08 20:24:28 hzi Exp $
+ * $Id: CL_pred.java,v 1.4 2004-07-19 19:20:22 hzi Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -243,7 +243,11 @@ public class CL_pred extends CL_parse {
}
};
- PMove.pm_airaccelerate = atof(cl.configstrings[CS_AIRACCEL]);
+ try {
+ PMove.pm_airaccelerate = Float.parseFloat(cl.configstrings[CS_AIRACCEL]);
+ } catch (Exception e) {
+ PMove.pm_airaccelerate = 0;
+ }
// bugfix (rst) yeah !!!!!!!! found the solution to the B E W E G U N G S P R O B L E M.
pm.s.set(cl.frame.playerstate.pmove);