mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-08 07:21:53 +00:00
(svn r21582) -Codechange: Simplify BuildRailClick_AutoSignals().
This commit is contained in:
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
Block a user