mirror of https://github.com/OpenTTD/OpenTTD
(svn r21582) -Codechange: Simplify BuildRailClick_AutoSignals().
parent
35491b71fb
commit
a448dc24d9
|
@ -456,10 +456,9 @@ static void BuildRailClick_Station(Window *w)
|
|||
*/
|
||||
static void BuildRailClick_AutoSignals(Window *w)
|
||||
{
|
||||
if (_settings_client.gui.enable_signal_gui != _ctrl_pressed) {
|
||||
if (HandlePlacePushButton(w, RTW_BUILD_SIGNALS, ANIMCURSOR_BUILDSIGNALS, HT_RECT, PlaceRail_AutoSignals)) ShowSignalBuilder(w);
|
||||
} else {
|
||||
HandlePlacePushButton(w, RTW_BUILD_SIGNALS, ANIMCURSOR_BUILDSIGNALS, HT_RECT, PlaceRail_AutoSignals);
|
||||
bool started = HandlePlacePushButton(w, RTW_BUILD_SIGNALS, ANIMCURSOR_BUILDSIGNALS, HT_RECT, PlaceRail_AutoSignals);
|
||||
if (started && _settings_client.gui.enable_signal_gui != _ctrl_pressed) {
|
||||
ShowSignalBuilder(w);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue