From 6333b9c9e96ff08a420c51d6045d17121ef29f7e Mon Sep 17 00:00:00 2001 From: Carsten Weisse Date: Wed, 25 May 2005 22:11:17 +0000 Subject: bugfix: now it works correct (see C sources) --- src/jake2/qcommon/Cvar.java | 8 ++++++-- 1 file 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); + } } /* -- cgit v1.2.3