From ee8400df19da65ea14b350fec3d1b7a35d1a86a3 Mon Sep 17 00:00:00 2001 From: meep-eep Date: Sun, 6 Nov 2005 20:38:22 +0000 Subject: [PATCH] Fast escape fix (bug #619). git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1954 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/ChangeLog | 1 + sc2/src/sc2code/battle.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sc2/ChangeLog b/sc2/ChangeLog index e817918ff..88cf6ac28 100644 --- a/sc2/ChangeLog +++ b/sc2/ChangeLog @@ -1,4 +1,5 @@ Changes towards version 0.5: +- Fixed fast escape weirdness (bug #619) - from Jan Lönnberg - New topographical 4x planet surface scaler (bug #786) - Alex - Added support for Tremor for Ogg Vorbis decoding (avoids floating point math) - SvdB diff --git a/sc2/src/sc2code/battle.c b/sc2/src/sc2code/battle.c index 28ae2da5c..e7478720a 100644 --- a/sc2/src/sc2code/battle.c +++ b/sc2/src/sc2code/battle.c @@ -102,7 +102,8 @@ if ((InputState & DEVICE_BUTTON3) if (GetPrimType (&DisplayArray[ElementPtr->PrimIndex]) == STAMP_PRIM && ElementPtr->life_span == NORMAL_LIFE && !(ElementPtr->state_flags & FINITE_LIFE) - && ElementPtr->mass_points != MAX_SHIP_MASS * 10) + && ElementPtr->mass_points != MAX_SHIP_MASS * 10 + && !(ElementPtr->state_flags & APPEARING)) { extern void flee_preprocess (PELEMENT);