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)
|
static void BuildRailClick_AutoSignals(Window *w)
|
||||||
{
|
{
|
||||||
if (_settings_client.gui.enable_signal_gui != _ctrl_pressed) {
|
bool started = HandlePlacePushButton(w, RTW_BUILD_SIGNALS, ANIMCURSOR_BUILDSIGNALS, HT_RECT, PlaceRail_AutoSignals);
|
||||||
if (HandlePlacePushButton(w, RTW_BUILD_SIGNALS, ANIMCURSOR_BUILDSIGNALS, HT_RECT, PlaceRail_AutoSignals)) ShowSignalBuilder(w);
|
if (started && _settings_client.gui.enable_signal_gui != _ctrl_pressed) {
|
||||||
} else {
|
ShowSignalBuilder(w);
|
||||||
HandlePlacePushButton(w, RTW_BUILD_SIGNALS, ANIMCURSOR_BUILDSIGNALS, HT_RECT, PlaceRail_AutoSignals);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue