From 16e7cc11c1861e75b5ab0f997f76e066a1192ded Mon Sep 17 00:00:00 2001 From: Rene Stoeckel Date: Sat, 19 Feb 2005 21:20:31 +0000 Subject: bugfix in SP_FixCoopSpots --- src/jake2/game/PlayerClientAdapters.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/jake2/game') 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); -- cgit v1.2.3