From 252832999fa43bce63ca4b643fab5d9dd51fccc4 Mon Sep 17 00:00:00 2001 From: Holger Zickner Date: Thu, 8 Jul 2004 20:24:48 +0000 Subject: import of Jake2 version cebit --- src/jake2/client/M.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/jake2/client/M.java') diff --git a/src/jake2/client/M.java b/src/jake2/client/M.java index 86747f8..dd8304f 100644 --- a/src/jake2/client/M.java +++ b/src/jake2/client/M.java @@ -2,7 +2,7 @@ * M.java * Copyright (C) 2003 * - * $Id: M.java,v 1.2 2004-07-08 15:58:42 hzi Exp $ + * $Id: M.java,v 1.3 2004-07-08 20:24:29 hzi Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -26,6 +26,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. package jake2.client; import jake2.Defines; +import jake2.Globals; import jake2.game.*; import jake2.qcommon.Com; import jake2.server.SV; @@ -393,7 +394,7 @@ public final class M if (0 == (ent.svflags & Defines.SVF_DEADMONSTER)) { if ((ent.watertype & Defines.CONTENTS_LAVA) != 0) - if (Lib.random() <= 0.5) + if (Globals.rnd.nextFloat() <= 0.5) GameBase.gi.sound(ent, Defines.CHAN_BODY, GameBase.gi.soundindex("player/lava1.wav"), 1, Defines.ATTN_NORM, 0); else GameBase.gi.sound(ent, Defines.CHAN_BODY, GameBase.gi.soundindex("player/lava2.wav"), 1, Defines.ATTN_NORM, 0); @@ -629,11 +630,11 @@ public final class M if (self.waterlevel != 0) return true; - if (Lib.random() > 0.5) + if (Globals.rnd.nextFloat() > 0.5) return true; self.think = M_FliesOn; - self.nextthink = GameBase.level.time + 5 + 10 * Lib.random(); + self.nextthink = GameBase.level.time + 5 + 10 * Globals.rnd.nextFloat(); return true; } }; -- cgit v1.2.3