Bug #319 part 3 fix (fleeing yehat collision after menu)
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1262 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -144,14 +144,21 @@ ip_group_preprocess (PELEMENT ElementPtr)
|
|||||||
<< FACING_SHIFT;
|
<< FACING_SHIFT;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(task & REFORM_GROUP)
|
if (!(task & REFORM_GROUP))
|
||||||
&& (task & ~(IGNORE_FLAGSHIP | REFORM_GROUP)) != FLEE)
|
{
|
||||||
|
if ((task & ~(IGNORE_FLAGSHIP | REFORM_GROUP)) != FLEE)
|
||||||
{
|
{
|
||||||
if (EPtr->state_flags & BAD_GUY)
|
if (EPtr->state_flags & BAD_GUY)
|
||||||
EPtr->state_flags &= ~GOOD_GUY;
|
EPtr->state_flags &= ~GOOD_GUY;
|
||||||
else
|
else
|
||||||
EPtr->state_flags |= BAD_GUY;
|
EPtr->state_flags |= BAD_GUY;
|
||||||
}
|
}
|
||||||
|
else if (!(task & IGNORE_FLAGSHIP)
|
||||||
|
&& !(EPtr->state_flags & (GOOD_GUY | BAD_GUY)))
|
||||||
|
{ // fleeing yehat ship collisions after menu fix
|
||||||
|
EPtr->state_flags |= BAD_GUY;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
target_loc = GET_GROUP_DEST (StarShipPtr);
|
target_loc = GET_GROUP_DEST (StarShipPtr);
|
||||||
if (!(task & (IGNORE_FLAGSHIP | REFORM_GROUP)))
|
if (!(task & (IGNORE_FLAGSHIP | REFORM_GROUP)))
|
||||||
|
|||||||
Reference in New Issue
Block a user