diff options
author | rubidium <rubidium@openttd.org> | 2009-09-10 14:27:43 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-09-10 14:27:43 +0000 |
commit | bb94724a092750794e8c2ad1a6537fac6b902b9e (patch) | |
tree | 53e2fad2517d84d432e7f047445e888643e15c67 /src/road_map.h | |
parent | 96e2435aa827b9e4af60b7c87fd8da38f9b87cc2 (diff) | |
download | openttd-bb94724a092750794e8c2ad1a6537fac6b902b9e.tar.xz |
(svn r17492) -Codechange: don't store the town index for road depots.
Diffstat (limited to 'src/road_map.h')
-rw-r--r-- | src/road_map.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/road_map.h b/src/road_map.h index 6dba8e420..04e87f1b9 100644 --- a/src/road_map.h +++ b/src/road_map.h @@ -407,11 +407,11 @@ static inline void MakeRoadCrossing(TileIndex t, Owner road, Owner tram, Owner r } -static inline void MakeRoadDepot(TileIndex t, Owner owner, DiagDirection dir, RoadType rt, TownID town) +static inline void MakeRoadDepot(TileIndex t, Owner owner, DiagDirection dir, RoadType rt) { SetTileType(t, MP_ROAD); SetTileOwner(t, owner); - _m[t].m2 = town; + _m[t].m2 = 0; _m[t].m3 = 0; _m[t].m4 = 0; _m[t].m5 = ROAD_TILE_DEPOT << 6 | dir; |