Fixes flying sideways on auto-pilot; bug #642

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1580 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2005-03-16 12:05:53 +00:00
parent 5088c938f8
commit 64f60affd0
+3 -1
View File
@@ -167,8 +167,10 @@ LeaveAutoPilot:
facing = NORMALIZE_FACING (ANGLE_TO_FACING (ARCTAN (udx, udy)));
/* This prevents ship from flying backwards on auto-pilot.
* It could also theoretically abort autopilot in a bad savegame */
if ((StarShipPtr->cur_status_flags & SHIP_AT_MAX_SPEED)
|| (ElementPtr->state_flags & APPEARING))
/*|| (ElementPtr->state_flags & APPEARING)*/ )
{
if (NORMALIZE_FACING (StarShipPtr->ShipFacing
+ ANGLE_TO_FACING (QUADRANT)