Fix collisions/encounters with "invisible" fleeing ships (bug #319)

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1216 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2003-09-08 22:25:00 +00:00
parent 57d0ca0ada
commit 73870cbf66
+1 -1
View File
@@ -156,7 +156,7 @@ ip_group_preprocess (PELEMENT ElementPtr)
target_loc = GET_GROUP_DEST (StarShipPtr); target_loc = GET_GROUP_DEST (StarShipPtr);
if (!(task & (IGNORE_FLAGSHIP | REFORM_GROUP))) if (!(task & (IGNORE_FLAGSHIP | REFORM_GROUP)))
{ {
if (target_loc == 0) if (target_loc == 0 && task != FLEE)
{ {
/* if intercepting flagship */ /* if intercepting flagship */
target_loc = flagship_loc; target_loc = flagship_loc;