Switching weapons off now deactivates turrets as well.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4118 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Nikos Barkas 2011-01-22 15:25:31 +00:00
parent 8bf132296c
commit eafb5ffe2f

View File

@ -7396,6 +7396,8 @@ Vector positionOffsetForShipInRotationToAlignment(ShipEntity* ship, Quaternion q
return NO;
if (range > weaponRange * 1.01) // 1% more than max range - open up just slightly early
return NO;
if ([[self rootShipEntity] isPlayer] && ![PLAYER weaponsOnline])
return NO;
Vector origin = position;
Entity *last = nil;