| 382 | } |
| 383 | |
| 384 | static void DoRailroadTrack(Track track) |
| 385 | { |
| 386 | if (_remove_button_clicked) { |
| 387 | Command<CMD_REMOVE_RAILROAD_TRACK>::Post(STR_ERROR_CAN_T_REMOVE_RAILROAD_TRACK, CcPlaySound_CONSTRUCTION_RAIL, |
| 388 | TileVirtXY(_thd.selend.x, _thd.selend.y), TileVirtXY(_thd.selstart.x, _thd.selstart.y), track); |
| 389 | } else { |
| 390 | Command<CMD_BUILD_RAILROAD_TRACK>::Post(STR_ERROR_CAN_T_BUILD_RAILROAD_TRACK, CcPlaySound_CONSTRUCTION_RAIL, |
| 391 | TileVirtXY(_thd.selend.x, _thd.selend.y), TileVirtXY(_thd.selstart.x, _thd.selstart.y), _cur_railtype, track, _settings_client.gui.auto_remove_signals, false); |
| 392 | } |
| 393 | } |
| 394 | |
| 395 | static void HandleAutodirPlacement() |
| 396 | { |
no test coverage detected