aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2
diff options
context:
space:
mode:
authorCarsten Weisse <[email protected]>2005-05-25 22:11:17 +0000
committerCarsten Weisse <[email protected]>2005-05-25 22:11:17 +0000
commit6333b9c9e96ff08a420c51d6045d17121ef29f7e (patch)
tree2c2847f573a4d2ad872ad3ef5249b9ea14363bc2 /src/jake2
parent30340a2724a4d80c616526e630d5a6b0eb090b6f (diff)
bugfix: now it works correct (see C sources)v_0_9_4
Diffstat (limited to 'src/jake2')
-rw-r--r--src/jake2/qcommon/Cvar.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/jake2/qcommon/Cvar.java b/src/jake2/qcommon/Cvar.java
index 4ad4eb6..e546813 100644
--- a/src/jake2/qcommon/Cvar.java
+++ b/src/jake2/qcommon/Cvar.java
@@ -2,7 +2,7 @@
* Cvar.java
* Copyright (C) 2003
*
- * $Id: Cvar.java,v 1.7.2.1 2005-05-24 23:43:38 cawe Exp $
+ * $Id: Cvar.java,v 1.7.2.2 2005-05-25 22:11:17 cawe Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -302,7 +302,11 @@ public class Cvar extends Globals {
}
public static void SetValue(String var_name, float value) {
- Cvar.Set(var_name, "" + value);
+ if (value == (int)value) {
+ Cvar.Set(var_name, "" + (int)value);
+ } else {
+ Cvar.Set(var_name, "" + value);
+ }
}
/*