mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r15662) -Fix (r11795): Don't mark a company as having ratings in a town when querying the cost of a command.
This commit is contained in:
parent
62e2de5822
commit
0564d52d99
@ -2651,8 +2651,6 @@ void ChangeTownRating(Town *t, int add, int max, DoCommandFlag flags)
|
||||
return;
|
||||
}
|
||||
|
||||
SetBit(t->have_ratings, _current_company);
|
||||
|
||||
int rating = GetRating(t);
|
||||
if (add < 0) {
|
||||
if (rating > max) {
|
||||
@ -2668,6 +2666,7 @@ void ChangeTownRating(Town *t, int add, int max, DoCommandFlag flags)
|
||||
if (_town_rating_test) {
|
||||
_town_test_ratings[t] = rating;
|
||||
} else {
|
||||
SetBit(t->have_ratings, _current_company);
|
||||
t->ratings[_current_company] = rating;
|
||||
InvalidateWindow(WC_TOWN_AUTHORITY, t->index);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user