| 100 | } |
| 101 | |
| 102 | static void GenericPlaceRail(TileIndex tile, Track track) |
| 103 | { |
| 104 | if (_remove_button_clicked) { |
| 105 | Command<CMD_REMOVE_SINGLE_RAIL>::Post(STR_ERROR_CAN_T_REMOVE_RAILROAD_TRACK, CcPlaySound_CONSTRUCTION_RAIL, |
| 106 | tile, track); |
| 107 | } else { |
| 108 | Command<CMD_BUILD_SINGLE_RAIL>::Post(STR_ERROR_CAN_T_BUILD_RAILROAD_TRACK, CcPlaySound_CONSTRUCTION_RAIL, |
| 109 | tile, _cur_railtype, track, _settings_client.gui.auto_remove_signals); |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | /** |
| 114 | * Try to add an additional rail-track at the entrance of a depot |
no outgoing calls
no test coverage detected