Changeset - r13862:b228932300ac
[Not reviewed]
master
0 1 0
rubidium - 14 years ago 2009-12-04 19:16:52
rubidium@openttd.org
(svn r18401) -Fix: drive through road stops did not get flooded
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/station_cmd.cpp
Show inline comments
 
@@ -3170,12 +3170,15 @@ static void ChangeTileOwner_Station(Tile
 
 * @param tile road stop tile to check
 
 * @param flags command flags
 
 * @return true if the road can be cleared
 
 */
 
static bool CanRemoveRoadWithStop(TileIndex tile, DoCommandFlag flags)
 
{
 
	/* Yeah... water can always remove stops, right? */
 
	if (_current_company == OWNER_WATER) return true;
 

	
 
	Owner road_owner = _current_company;
 
	Owner tram_owner = _current_company;
 

	
 
	RoadTypes rts = GetRoadTypes(tile);
 
	if (HasBit(rts, ROADTYPE_ROAD)) road_owner = GetRoadOwner(tile, ROADTYPE_ROAD);
 
	if (HasBit(rts, ROADTYPE_TRAM)) tram_owner = GetRoadOwner(tile, ROADTYPE_TRAM);
0 comments (0 inline, 0 general)