Changeset - r3100:91c745577c35
[Not reviewed]
master
0 1 0
tron - 18 years ago 2006-03-01 06:39:04
tron@openttd.org
(svn r3695) Add 2 MarkTileByTile() which I forgot in r3689 (noticed by Belugas)
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
road_cmd.c
Show inline comments
 
@@ -405,12 +405,13 @@ int32 CmdBuildRoad(int x, int y, uint32 
 
			} else {
 
				goto do_clear;
 
			}
 

	
 
			if (flags & DC_EXEC) {
 
				MakeRoadCrossing(tile, _current_player, GetTileOwner(tile), roaddir, GB(_m[tile].m3, 0, 4), p2);
 
				MarkTileDirtyByTile(tile);
 
			}
 
			return _price.build_road * 2;
 
		}
 

	
 
		case MP_TUNNELBRIDGE:
 
			/* check for flat land */
 
@@ -656,12 +657,13 @@ int32 CmdBuildRoadDepot(int x, int y, ui
 
		if (IsLocalPlayer()) _last_built_road_depot_tile = tile;
 

	
 
		dep->xy = tile;
 
		dep->town_index = ClosestTownFromTile(tile, (uint)-1)->index;
 

	
 
		MakeRoadDepot(tile, _current_player, p1);
 
		MarkTileDirtyByTile(tile);
 
	}
 
	return cost + _price.build_road_depot;
 
}
 

	
 
static int32 RemoveRoadDepot(TileIndex tile, uint32 flags)
 
{
0 comments (0 inline, 0 general)