Do not try to award bounty if player died while trying (e.g. when colliding with an asteroid).

This commit is contained in:
AnotherCommander 2017-07-09 14:51:50 +02:00
parent 98eeb0401b
commit 42fc5deeb3

View File

@ -6588,6 +6588,8 @@ NSComparisonResult marketSorterByMassUnit(id a, id b, void *market);
- (void) collectBountyFor:(ShipEntity *)other
{
if ([self status] == STATUS_DEAD) return; // no bounty if we died while trying
if (other == nil || [other isSubEntity]) return;
if (other == [UNIVERSE station])