aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2
diff options
context:
space:
mode:
authorRene Stoeckel <[email protected]>2005-02-19 21:20:31 +0000
committerRene Stoeckel <[email protected]>2005-02-19 21:20:31 +0000
commit16e7cc11c1861e75b5ab0f997f76e066a1192ded (patch)
tree9ad09580594c08d63bbccd755c47f7019dbe6e39 /src/jake2
parent3b1bd7b6550e5b2ca078534690ea7e3c1e262c97 (diff)
bugfix in SP_FixCoopSpots
Diffstat (limited to 'src/jake2')
-rw-r--r--src/jake2/game/PlayerClientAdapters.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/jake2/game/PlayerClientAdapters.java b/src/jake2/game/PlayerClientAdapters.java
index 198c124..029f1d3 100644
--- a/src/jake2/game/PlayerClientAdapters.java
+++ b/src/jake2/game/PlayerClientAdapters.java
@@ -19,7 +19,7 @@
*/
// Created on 26.02.2004 by RST.
-// $Id: PlayerClientAdapters.java,v 1.3 2004-09-22 19:22:05 salomo Exp $
+// $Id: PlayerClientAdapters.java,v 1.4 2005-02-19 21:20:31 salomo Exp $
package jake2.game;
import jake2.Defines;
@@ -53,9 +53,12 @@ public class PlayerClientAdapters {
while (true) {
es = GameBase.G_Find(es, GameBase.findByClass,
"info_player_start");
- spot = es.o;
- if (spot == null)
+
+ if (es == null)
return true;
+
+ spot = es.o;
+
if (spot.targetname == null)
continue;
Math3D.VectorSubtract(self.s.origin, spot.s.origin, d);