aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/game/GameFunc.java
diff options
context:
space:
mode:
authorRene Stoeckel <[email protected]>2005-02-20 21:50:52 +0000
committerRene Stoeckel <[email protected]>2005-02-20 21:50:52 +0000
commit82f8c0e24b4630dee032c8f655bb2af7b4d71658 (patch)
tree0cc4688e1c9ac5f63d4ed1cbda2c2e4a84d83872 /src/jake2/game/GameFunc.java
parent7b154a2572d67f9bbc20dcbce79cb2b68f038809 (diff)
VectorEquals instead of VectorCompare
Diffstat (limited to 'src/jake2/game/GameFunc.java')
-rw-r--r--src/jake2/game/GameFunc.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jake2/game/GameFunc.java b/src/jake2/game/GameFunc.java
index 9a77e17..014e020 100644
--- a/src/jake2/game/GameFunc.java
+++ b/src/jake2/game/GameFunc.java
@@ -19,7 +19,7 @@
*/
// Created on 18.11.2003 by RST.
-// $Id: GameFunc.java,v 1.5 2004-09-22 19:22:04 salomo Exp $
+// $Id: GameFunc.java,v 1.6 2005-02-20 21:50:36 salomo Exp $
package jake2.game;
import jake2.Defines;
@@ -668,7 +668,7 @@ public class GameFunc {
Math3D.VectorSubtract(ent.moveinfo.start_angles, ent.s.angles,
move);
- if (Math3D.VectorCompare(move, Globals.vec3_origin) != 0) {
+ if (Math3D.VectorEquals(move, Globals.vec3_origin)) {
AngleMove_Done.think(ent);
return true;
}
@@ -881,7 +881,7 @@ public class GameFunc {
static EntUseAdapter rotating_use = new EntUseAdapter() {
public void use(edict_t self, edict_t other, edict_t activator) {
- if (0 == Math3D.VectorCompare(self.avelocity, Globals.vec3_origin)) {
+ if (!Math3D.VectorEquals(self.avelocity, Globals.vec3_origin)) {
self.s.sound = 0;
Math3D.VectorClear(self.avelocity);
self.touch = null;
@@ -1972,7 +1972,7 @@ public class GameFunc {
public void use(edict_t self, edict_t other, edict_t activator) {
// make sure we're not already moving
- if (0 == Math3D.VectorCompare(self.s.origin, Globals.vec3_origin))
+ if (!Math3D.VectorEquals(self.s.origin, Globals.vec3_origin))
return;
GameFunc.Move_Calc(self, self.pos1, door_secret_move1);