From 64f60affd0c91df28fdf1955cbbf3d01d69dd75d Mon Sep 17 00:00:00 2001 From: avolkov Date: Wed, 16 Mar 2005 12:05:53 +0000 Subject: [PATCH] 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 --- sc2/src/sc2code/ships/sis_ship/sis_ship.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sc2/src/sc2code/ships/sis_ship/sis_ship.c b/sc2/src/sc2code/ships/sis_ship/sis_ship.c index 147f2a404..af30cf3ad 100644 --- a/sc2/src/sc2code/ships/sis_ship/sis_ship.c +++ b/sc2/src/sc2code/ships/sis_ship/sis_ship.c @@ -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)