diff options
author | Rene Stoeckel <[email protected]> | 2005-02-20 21:50:52 +0000 |
---|---|---|
committer | Rene Stoeckel <[email protected]> | 2005-02-20 21:50:52 +0000 |
commit | 82f8c0e24b4630dee032c8f655bb2af7b4d71658 (patch) | |
tree | 0cc4688e1c9ac5f63d4ed1cbda2c2e4a84d83872 /src/jake2/game/GameBase.java | |
parent | 7b154a2572d67f9bbc20dcbce79cb2b68f038809 (diff) |
VectorEquals instead of VectorCompare
Diffstat (limited to 'src/jake2/game/GameBase.java')
-rw-r--r-- | src/jake2/game/GameBase.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jake2/game/GameBase.java b/src/jake2/game/GameBase.java index dc6950e..1bf3c28 100644 --- a/src/jake2/game/GameBase.java +++ b/src/jake2/game/GameBase.java @@ -19,7 +19,7 @@ */ // Created on 30.11.2003 by RST. -// $Id: GameBase.java,v 1.9 2005-02-13 17:02:45 cawe Exp $ +// $Id: GameBase.java,v 1.10 2005-02-20 21:50:36 salomo Exp $ /** Father of all GameObjects. */ package jake2.game; @@ -286,9 +286,9 @@ public class GameBase { public static float[] MOVEDIR_DOWN = { 0, 0, -1 }; public static void G_SetMovedir(float[] angles, float[] movedir) { - if (Math3D.VectorCompare(angles, VEC_UP) != 0) { + if (Math3D.VectorEquals(angles, VEC_UP)) { Math3D.VectorCopy(MOVEDIR_UP, movedir); - } else if (Math3D.VectorCompare(angles, VEC_DOWN) != 0) { + } else if (Math3D.VectorEquals(angles, VEC_DOWN)) { Math3D.VectorCopy(MOVEDIR_DOWN, movedir); } else { Math3D.AngleVectors(angles, movedir, null, null); |