From 516da598492d8823ddb401167061e2ef63db08b3 Mon Sep 17 00:00:00 2001 From: Carsten Weisse Date: Mon, 14 May 2007 22:29:30 +0000 Subject: use Lib.atof instead --- src/jake2/client/CL_pred.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/jake2/client/CL_pred.java') diff --git a/src/jake2/client/CL_pred.java b/src/jake2/client/CL_pred.java index dd44a30..0f0620b 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.6 2004-10-04 12:50:37 hzi Exp $ + * $Id: CL_pred.java,v 1.7 2007-05-14 22:29:30 cawe Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -29,6 +29,7 @@ import jake2.Defines; import jake2.Globals; import jake2.game.*; import jake2.qcommon.*; +import jake2.util.Lib; import jake2.util.Math3D; /** @@ -251,12 +252,7 @@ public class CL_pred { } }; - try { - PMove.pm_airaccelerate = Float - .parseFloat(Globals.cl.configstrings[Defines.CS_AIRACCEL]); - } catch (Exception e) { - PMove.pm_airaccelerate = 0; - } + PMove.pm_airaccelerate = Lib.atof(Globals.cl.configstrings[Defines.CS_AIRACCEL]); // bugfix (rst) yeah !!!!!!!! found the solution to the B E W E G U N G // S P R O B L E M. -- cgit v1.2.3