diff options
author | Carsten Weisse <[email protected]> | 2005-01-21 01:08:48 +0000 |
---|---|---|
committer | Carsten Weisse <[email protected]> | 2005-01-21 01:08:48 +0000 |
commit | d80bc8f11047df49777e65f719d80636107d7bb2 (patch) | |
tree | 1fe24467b9fa0b707bcbf78cef501ea5b5dee92c | |
parent | 5e6d0139f3951e98096987ef92e1063cc8bb89ac (diff) |
reset() is now clear()
-rw-r--r-- | src/jake2/game/pmove_state_t.java | 4 | ||||
-rw-r--r-- | src/jake2/game/pmove_t.java | 6 | ||||
-rw-r--r-- | src/jake2/game/usercmd_t.java | 7 |
3 files changed, 9 insertions, 8 deletions
diff --git a/src/jake2/game/pmove_state_t.java b/src/jake2/game/pmove_state_t.java index 01b0bf6..2e83f3e 100644 --- a/src/jake2/game/pmove_state_t.java +++ b/src/jake2/game/pmove_state_t.java @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // Created on 31.10.2003 by RST. -// $Id: pmove_state_t.java,v 1.2 2004-08-20 21:29:58 salomo Exp $ +// $Id: pmove_state_t.java,v 1.3 2005-01-21 01:08:48 cawe Exp $ package jake2.game; import jake2.qcommon.Com; @@ -51,7 +51,7 @@ public class pmove_state_t { private static pmove_state_t prototype = new pmove_state_t(); - public void reset() + public void clear() { this.set(prototype); } diff --git a/src/jake2/game/pmove_t.java b/src/jake2/game/pmove_t.java index a843ac5..e9ace44 100644 --- a/src/jake2/game/pmove_t.java +++ b/src/jake2/game/pmove_t.java @@ -19,7 +19,7 @@ */ // Created on 31.10.2003 by RST. -// $Id: pmove_t.java,v 1.3 2005-01-21 00:54:44 cawe Exp $ +// $Id: pmove_t.java,v 1.4 2005-01-21 01:08:48 cawe Exp $ package jake2.game; import jake2.Defines; @@ -103,7 +103,7 @@ public class pmove_t { Arrays.fill(touchents, null); numtouch = 0; snapinitial = false; - cmd.reset(); - s.reset(); + cmd.clear(); + s.clear(); } }
\ No newline at end of file diff --git a/src/jake2/game/usercmd_t.java b/src/jake2/game/usercmd_t.java index 24fad5a..4dae480 100644 --- a/src/jake2/game/usercmd_t.java +++ b/src/jake2/game/usercmd_t.java @@ -19,13 +19,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // Created on 31.10.2003 by RST. -// $Id: usercmd_t.java,v 1.3 2004-09-12 18:25:49 salomo Exp $ +// $Id: usercmd_t.java,v 1.4 2005-01-21 01:08:48 cawe Exp $ package jake2.game; import java.util.Arrays; import jake2.util.Lib; +import jake2.util.Math3D; public class usercmd_t implements Cloneable { public byte msec; @@ -35,9 +36,9 @@ public class usercmd_t implements Cloneable { public byte impulse; // remove? public byte lightlevel; // light level the player is standing on - public void reset() { + public void clear() { forwardmove= sidemove= upmove= msec= buttons= impulse= lightlevel= 0; - Arrays.fill(angles, (short) 0); + angles[0] = angles[1] = angles[2] = 0; } public usercmd_t() { |