Fix code style in Town::UpdateLabel

This commit is contained in:
Jonathan G Rennison
2021-03-02 23:12:01 +00:00
parent 3e017ddaa9
commit 13b34b9917

View File

@@ -213,11 +213,11 @@ void Town::UpdateLabel()
{ {
if (!(_game_mode == GM_EDITOR) && (_local_company < MAX_COMPANIES)) { if (!(_game_mode == GM_EDITOR) && (_local_company < MAX_COMPANIES)) {
int r = this->ratings[_local_company]; int r = this->ratings[_local_company];
(this->town_label = 0, r <= RATING_VERYPOOR) || // Appalling and Very Poor this->town_label = 0; // Appalling and Very Poor
(this->town_label++, r <= RATING_MEDIOCRE) || // Poor and Mediocre if (r > RATING_VERYPOOR) this->town_label++; // Poor and Mediocre
(this->town_label++, r <= RATING_GOOD) || // Good if (r > RATING_MEDIOCRE) this->town_label++; // Good
(this->town_label++, r <= RATING_VERYGOOD) || // Very Good if (r > RATING_GOOD) this->town_label++; // Very Good
(this->town_label++, true); // Excellent and Outstanding if (r > RATING_VERYGOOD) this->town_label++; // Excellent and Outstanding
} }
} }