equal
deleted
inserted
replaced
1066 PlayerID i; |
1066 PlayerID i; |
1067 Player *p2; |
1067 Player *p2; |
1068 |
1068 |
1069 /* Disable the players who are not active */ |
1069 /* Disable the players who are not active */ |
1070 for (i = PLAYER_FIRST; i < MAX_PLAYERS; i++) { |
1070 for (i = PLAYER_FIRST; i < MAX_PLAYERS; i++) { |
1071 SetWindowWidgetDisabledState(w, i + 13, !GetPlayer(i)->is_active); |
1071 w->SetWidgetDisabledState(i + 13, !GetPlayer(i)->is_active); |
1072 } |
1072 } |
1073 /* Update all player stats with the current data |
1073 /* Update all player stats with the current data |
1074 * (this is because _score_info is not saved to a savegame) */ |
1074 * (this is because _score_info is not saved to a savegame) */ |
1075 FOR_ALL_PLAYERS(p2) { |
1075 FOR_ALL_PLAYERS(p2) { |
1076 if (p2->is_active) UpdateCompanyRatingAndValue(p2, false); |
1076 if (p2->is_active) UpdateCompanyRatingAndValue(p2, false); |