Ignored neutral and nobody player.

This commit is contained in:
johns 2001-06-04 14:52:38 +00:00
parent 03dd8c2c54
commit 1c5afba929

View file

@ -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 ) {