Dead stations do not allow docking. Should fix oddity reported by Wyvern Mommy in Nova mission.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5677 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
parent
e3256a1b2a
commit
3eeeff5d84
@ -629,6 +629,10 @@ MA 02110-1301, USA.
|
||||
// control, if allow_docking is false but d_d_c is true
|
||||
|
||||
StationEntity *station = (StationEntity *)[self parentEntity];
|
||||
if ([station status] == STATUS_DEAD)
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
Quaternion q0 = quaternion_multiply(orientation, [station orientation]);
|
||||
Vector vi = vector_right_from_quaternion(q0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user