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:
@@ -167,8 +167,10 @@ LeaveAutoPilot:
|
|||||||
|
|
||||||
facing = NORMALIZE_FACING (ANGLE_TO_FACING (ARCTAN (udx, udy)));
|
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)
|
if ((StarShipPtr->cur_status_flags & SHIP_AT_MAX_SPEED)
|
||||||
|| (ElementPtr->state_flags & APPEARING))
|
/*|| (ElementPtr->state_flags & APPEARING)*/ )
|
||||||
{
|
{
|
||||||
if (NORMALIZE_FACING (StarShipPtr->ShipFacing
|
if (NORMALIZE_FACING (StarShipPtr->ShipFacing
|
||||||
+ ANGLE_TO_FACING (QUADRANT)
|
+ ANGLE_TO_FACING (QUADRANT)
|
||||||
|
|||||||
Reference in New Issue
Block a user