From 13b34b99170158684ec585d5d1097ef1eb10608c Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Tue, 2 Mar 2021 23:12:01 +0000 Subject: [PATCH] Fix code style in Town::UpdateLabel --- src/town_cmd.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index 00807a1a46..88819b6ded 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -213,11 +213,11 @@ void Town::UpdateLabel() { if (!(_game_mode == GM_EDITOR) && (_local_company < MAX_COMPANIES)) { int r = this->ratings[_local_company]; - (this->town_label = 0, r <= RATING_VERYPOOR) || // Appalling and Very Poor - (this->town_label++, r <= RATING_MEDIOCRE) || // Poor and Mediocre - (this->town_label++, r <= RATING_GOOD) || // Good - (this->town_label++, r <= RATING_VERYGOOD) || // Very Good - (this->town_label++, true); // Excellent and Outstanding + this->town_label = 0; // Appalling and Very Poor + if (r > RATING_VERYPOOR) this->town_label++; // Poor and Mediocre + if (r > RATING_MEDIOCRE) this->town_label++; // Good + if (r > RATING_GOOD) this->town_label++; // Very Good + if (r > RATING_VERYGOOD) this->town_label++; // Excellent and Outstanding } }