src/graph_gui.cpp
branchcpp_gui
changeset 6246 2a4c2c4d66f0
parent 6241 6a7a41b0cd32
child 6247 67e881450cf3
equal deleted inserted replaced
6245:6fa82c6ee8ca 6246:2a4c2c4d66f0
  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);