- Partly reined in the zombie killer code from rev2927, so dying doesn't crash Oolite to the desktop. However, the game doesn't seem to want to restart once the player's dead. More reining in will be needed, will have a look in 10 hours or so, if it hasn't been sorted by then.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2929 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Marc 2010-01-04 06:55:09 +00:00
parent bb5e6e963d
commit 95b2d2f6ba

View File

@ -5589,8 +5589,11 @@ OOINLINE BOOL EntityInRange(Vector p1, Entity *e2, float range)
Entity *zombie = nil;
for (zombieEnum = [zombies objectEnumerator]; (zombie = [zombieEnum nextObject]); )
{
OOLogERR(@"universe.zombie", @"Found dead entity %@ in active entity list, removing. This is an internal error, please report it.", zombie);
[self removeEntity:zombie];
if (![zombie isPlayer]) // 'Press Space, Commmander'
{
OOLogERR(@"universe.zombie", @"Found dead entity %@ in active entity list, removing. This is an internal error, please report it.", zombie);
[self removeEntity:zombie];
}
}
}