diff options
author | Carsten Weisse <[email protected]> | 2005-01-21 00:54:44 +0000 |
---|---|---|
committer | Carsten Weisse <[email protected]> | 2005-01-21 00:54:44 +0000 |
commit | 5e6d0139f3951e98096987ef92e1063cc8bb89ac (patch) | |
tree | d9ed512933eed64e62a72c9c7db3552f6dcc5a9f /src | |
parent | 43c64e697f5bd0d89b5b8b5fcf7a601b606d7b51 (diff) |
clear() fixed (no new)
Diffstat (limited to 'src')
-rw-r--r-- | src/jake2/game/pmove_t.java | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/jake2/game/pmove_t.java b/src/jake2/game/pmove_t.java index 7156e2a..a843ac5 100644 --- a/src/jake2/game/pmove_t.java +++ b/src/jake2/game/pmove_t.java @@ -19,11 +19,13 @@ */ // Created on 31.10.2003 by RST. -// $Id: pmove_t.java,v 1.2 2004-09-22 19:22:04 salomo Exp $ +// $Id: pmove_t.java,v 1.3 2005-01-21 00:54:44 cawe Exp $ package jake2.game; -import jake2.*; -import jake2.server.SV_WORLD; +import jake2.Defines; +import jake2.util.Math3D; + +import java.util.Arrays; public class pmove_t { @@ -90,19 +92,18 @@ public class pmove_t { // grappling hook) public void clear() { - groundentity = null; waterlevel = watertype = 0; trace = null; pointcontents = null; - mins = new float[3]; - maxs = new float[3]; + Math3D.VectorClear(mins); + Math3D.VectorClear(maxs); viewheight = 0; - viewangles = new float[3]; - touchents = new edict_t[Defines.MAXTOUCH]; + Math3D.VectorClear(viewangles); + Arrays.fill(touchents, null); numtouch = 0; snapinitial = false; - cmd = new usercmd_t(); - s = new pmove_state_t(); + cmd.reset(); + s.reset(); } }
\ No newline at end of file |