From 5c5548cd1021990914588de0a996a418d2a7d6d2 Mon Sep 17 00:00:00 2001 From: Holger Zickner Date: Sun, 26 Jun 2005 09:17:33 +0000 Subject: parseInt/Long may throw an exception --- src/jake2/client/CL_input.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/jake2/client') diff --git a/src/jake2/client/CL_input.java b/src/jake2/client/CL_input.java index 3e5e4de..b4fadfa 100644 --- a/src/jake2/client/CL_input.java +++ b/src/jake2/client/CL_input.java @@ -2,7 +2,7 @@ * java * Copyright (C) 2004 * - * $Id: CL_input.java,v 1.6 2005-06-07 12:57:21 hzi Exp $ + * $Id: CL_input.java,v 1.7 2005-06-26 09:17:33 hzi Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -141,7 +141,7 @@ public class CL_input { static void KeyUp(kbutton_t b) { int k; String c; - long uptime; + int uptime; c = Cmd.Argv(1); if (c.length() > 0) @@ -168,7 +168,7 @@ public class CL_input { // save timestamp c = Cmd.Argv(2); - uptime = Long.parseLong(c); + uptime = Lib.atoi(c); if (uptime != 0) b.msec += uptime - b.downtime; else -- cgit v1.2.3