Another Demo2 change: no comms message will be received when on Demo2 screen.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1498 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Marc 2008-03-21 18:29:44 +00:00
parent 96330a81a4
commit 8102efee75

View File

@ -5162,6 +5162,8 @@ OOINLINE BOOL EntityInRange(Vector p1, Entity *e2, float range)
- (void) addCommsMessage:(NSString *)text forCount:(OOTimeDelta)count
{
if ([PlayerEntity sharedPlayer] && [[PlayerEntity sharedPlayer] showDemoShips]) return;
if (![currentMessage isEqualToString:text])
{
PlayerEntity* player = [PlayerEntity sharedPlayer];