mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r25921) -Fix [FS#5763]: Goal and progress columns were out of sync for company specific goals, if there were no global goals.
This commit is contained in:
parent
f522546d57
commit
d5e15c9007
@ -219,8 +219,8 @@ struct GoalListWindow : public Window {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (column == GC_GOAL && num == 0) {
|
if (num == 0) {
|
||||||
if (IsInsideMM(pos, 0, cap)) {
|
if (column == GC_GOAL && IsInsideMM(pos, 0, cap)) {
|
||||||
StringID str = !global_section && this->window_number == INVALID_COMPANY ? STR_GOALS_SPECTATOR_NONE : STR_GOALS_NONE;
|
StringID str = !global_section && this->window_number == INVALID_COMPANY ? STR_GOALS_SPECTATOR_NONE : STR_GOALS_NONE;
|
||||||
DrawString(x, right, y + pos * FONT_HEIGHT_NORMAL, str);
|
DrawString(x, right, y + pos * FONT_HEIGHT_NORMAL, str);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user