summaryrefslogtreecommitdiff
path: root/src/road_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-02-16 22:44:56 +0000
committerrubidium <rubidium@openttd.org>2007-02-16 22:44:56 +0000
commitc96f7c91e534e0eafe9b0f52c1aa16c4ea002ec7 (patch)
tree47beb5b6e722d1dfc784788f03af450c40963d05 /src/road_gui.cpp
parent3b56c49d6a66aafba721b2a7d0a8955f87f8659f (diff)
downloadopenttd-c96f7c91e534e0eafe9b0f52c1aa16c4ea002ec7.tar.xz
(svn r8765) -Codechange: remove logic redundancy by moving it from the gui into the cmd code.
Diffstat (limited to 'src/road_gui.cpp')
-rw-r--r--src/road_gui.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/road_gui.cpp b/src/road_gui.cpp
index 0f8f00074..2ca823247 100644
--- a/src/road_gui.cpp
+++ b/src/road_gui.cpp
@@ -100,16 +100,6 @@ static void PlaceRoadStop(TileIndex tile, uint32 p2, uint32 cmd)
if (p1 >= DIAGDIR_END) {
SETBIT(p2, 1); // It's a drive-through stop
p1 -= DIAGDIR_END; // Adjust picker result to actual direction
-
- /* Only allow building over a road if its a straight road,
- * facing the right direction and it belongs to the player */
- if ((IsTileType(tile, MP_STREET) &&
- GetRoadTileType(tile) == ROAD_TILE_NORMAL &&
- (IsTileOwner(tile, _current_player) || (_patches.road_stop_on_town_road && IsTileOwner(tile, OWNER_TOWN))) &&
- !(GetRoadBits(tile) & ((DiagDirection)p1 == DIAGDIR_NE ? ROAD_Y : ROAD_X)))) {
-
- cmd ^= CMD_AUTO;
- }
}
DoCommandP(tile, p1, p2, CcRoadDepot, cmd);
}