Fix errors when subentities try to launch escape pods
(They don't have crew, so they need has_escape_pod >= 2 to actually launch anything even now)
This commit is contained in:
parent
a682b933fc
commit
33dfb0ef5c
@ -41,6 +41,7 @@ Changes between Oolite 1.80 and Oolite 1.80.1:
|
||||
* Fixed key 5 switching to status screen when used during save game
|
||||
filename entry.
|
||||
* Fix Linux uninstall script error handling
|
||||
* Fix errors with escape pod launch from subentities
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
|
@ -11657,7 +11657,7 @@ Vector positionOffsetForShipInRotationToAlignment(ShipEntity* ship, Quaternion q
|
||||
|
||||
Quaternion jetto_orientation = kIdentityQuaternion;
|
||||
Vector vel, v_eject, v_eject_normal;
|
||||
HPVector rpos = position;
|
||||
HPVector rpos = [self absolutePositionForSubentity];
|
||||
double jetto_roll = 0;
|
||||
double jetto_pitch = 0;
|
||||
|
||||
@ -12415,6 +12415,11 @@ Vector positionOffsetForShipInRotationToAlignment(ShipEntity* ship, Quaternion q
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (EXPECT([self isSubEntity]))
|
||||
{
|
||||
// may still have launched passenger pods even if no crew
|
||||
[self removeEquipmentItem:@"EQ_ESCAPE_POD"];
|
||||
}
|
||||
else
|
||||
{
|
||||
// this shouldn't happen any more!
|
||||
|
Loading…
x
Reference in New Issue
Block a user