Show station information in confirmation mode only if coverage area highlight is enabled, it will show incorrect info otherwise

This commit is contained in:
Sergii Pylypenko
2016-05-16 20:22:13 +03:00
parent 3b79284608
commit f7b1a0abd3
2 changed files with 5 additions and 3 deletions

View File

@@ -222,7 +222,9 @@ void ShowBuildConfirmationWindow()
w->SetDirty();
SetDirtyBlocks(0, 0, _screen.width, _screen.height); // I don't know what does this do, but it looks important
StationBuildInfoWindow::show();
if (_settings_client.gui.station_show_coverage) {
StationBuildInfoWindow::show();
}
}
/**