From c96f7c91e534e0eafe9b0f52c1aa16c4ea002ec7 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 16 Feb 2007 22:44:56 +0000 Subject: (svn r8765) -Codechange: remove logic redundancy by moving it from the gui into the cmd code. --- src/road_gui.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/road_gui.cpp') 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); } -- cgit v1.2.3-54-g00ecf