Ignored neutral and nobody player.
This commit is contained in:
parent
03dd8c2c54
commit
1c5afba929
1 changed files with 4 additions and 1 deletions
|
@ -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 ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue