From 1c5afba9294f7938e9f34435ee56be8940909338 Mon Sep 17 00:00:00 2001 From: johns <> Date: Mon, 4 Jun 2001 14:52:38 +0000 Subject: [PATCH] Ignored neutral and nobody player. --- src/stratagus/goal.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/stratagus/goal.cpp b/src/stratagus/goal.cpp index 16138a9e6..38eb8f840 100644 --- a/src/stratagus/goal.cpp +++ b/src/stratagus/goal.cpp @@ -66,8 +66,11 @@ global void CheckGoals(void) DebugLevel3Fn("\n"); + // + // FIXME: not correct, must check teams. + // for( i=n=0; i<NumPlayers; ++i ) { - if( Players[i].Race!=PlayerRaceNeutral ) { + if( Players[i].Type!=PlayerNeutral && Players[i].Type!=PlayerNobody ) { DebugLevel3("%d: %d %d\n",i,Players[i].NumFoodUnits ,Players[i].NumBuildings); if( Players[i].NumFoodUnits+Players[i].NumBuildings ) {