Loading

Paste #pwqxrpiro

  1. diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
  2. index f7eb353a0..970a9533a 100644
  3. --- a/src/station_cmd.cpp
  4. +++ b/src/station_cmd.cpp
  5. @@ -3375,18 +3375,17 @@ static void UpdateStationRating(Station *st)
  6.  
  7.                 byte waittime = ge->time_since_pickup;
  8.                 if (st->last_vehicle_type == VEH_SHIP) waittime >>= 2;
  9. -               (waittime > 21) ||
  10. -               (rating += 25, waittime > 12) ||
  11. -               (rating += 25, waittime > 6) ||
  12. -               (rating += 45, waittime > 3) ||
  13. -               (rating += 35, true);
  14. +               if (waittime <= 21) rating += 25;
  15. +               if (waittime <= 12) rating += 25;
  16. +               if (waittime <= 6) rating += 45;
  17. +               if (waittime <= 3) rating += 35;
  18.  
  19. -               (rating -= 90, ge->max_waiting_cargo > 1500) ||
  20. -               (rating += 55, ge->max_waiting_cargo > 1000) ||
  21. -               (rating += 35, ge->max_waiting_cargo > 600) ||
  22. -               (rating += 10, ge->max_waiting_cargo > 300) ||
  23. -               (rating += 20, ge->max_waiting_cargo > 100) ||
  24. -               (rating += 10, true);
  25. +               rating -= 90;
  26. +               if (ge->max_waiting_cargo <= 1500) rating += 55;
  27. +               if (ge->max_waiting_cargo <= 1000) rating += 35;
  28. +               if (ge->max_waiting_cargo <= 600) rating += 10;
  29. +               if (ge->max_waiting_cargo <= 300) rating += 20;
  30. +               if (ge->max_waiting_cargo <= 100) rating += 10;
  31.             }
  32.  
  33.             if (Company::IsValidID(st->owner) && HasBit(st->town->statues, st->owner)) rating += 26;

Comments