Changeset - r20877:cd37e1fdd8a4
[Not reviewed]
master
0 1 0
frosch - 11 years ago 2013-10-28 10:41:57
frosch@openttd.org
(svn r25921) -Fix [FS#5763]: Goal and progress columns were out of sync for company specific goals, if there were no global goals.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/goal_gui.cpp
Show inline comments
 
@@ -219,8 +219,8 @@ struct GoalListWindow : public Window {
 
			}
 
		}
 

	
 
		if (column == GC_GOAL && num == 0) {
 
			if (IsInsideMM(pos, 0, cap)) {
 
		if (num == 0) {
 
			if (column == GC_GOAL && IsInsideMM(pos, 0, cap)) {
 
				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);
 
			}
0 comments (0 inline, 0 general)