mirror of https://github.com/OpenTTD/OpenTTD
(svn r27784) -Fix [FS#6505]: Allow rail conversion even if ship is on tile (Samu).
parent
afcef7faa6
commit
3109f158a6
|
@ -1603,7 +1603,7 @@ CommandCost CmdConvertRail(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
|
||||||
* Tunnels and bridges have special check later */
|
* Tunnels and bridges have special check later */
|
||||||
if (tt != MP_TUNNELBRIDGE) {
|
if (tt != MP_TUNNELBRIDGE) {
|
||||||
if (!IsCompatibleRail(type, totype)) {
|
if (!IsCompatibleRail(type, totype)) {
|
||||||
CommandCost ret = EnsureNoVehicleOnGround(tile);
|
CommandCost ret = IsPlainRailTile(tile) ? EnsureNoTrainOnTrackBits(tile, GetTrackBits(tile)) : EnsureNoVehicleOnGround(tile);
|
||||||
if (ret.Failed()) {
|
if (ret.Failed()) {
|
||||||
error = ret;
|
error = ret;
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue