diff options
author | rubidium <rubidium@openttd.org> | 2009-09-10 14:33:07 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-09-10 14:33:07 +0000 |
commit | 55ddce8da2b6993fa1228a8935526d40fc44de46 (patch) | |
tree | 02f1f3836fd9c76b19b741a772d0efb29c528d7b /src/road_map.h | |
parent | bb94724a092750794e8c2ad1a6537fac6b902b9e (diff) | |
download | openttd-55ddce8da2b6993fa1228a8935526d40fc44de46.tar.xz |
(svn r17493) -Codechange: store the depot index on the map
Diffstat (limited to 'src/road_map.h')
-rw-r--r-- | src/road_map.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/road_map.h b/src/road_map.h index 04e87f1b9..b43e056ff 100644 --- a/src/road_map.h +++ b/src/road_map.h @@ -13,6 +13,7 @@ #define ROAD_MAP_H #include "track_func.h" +#include "depot_type.h" #include "rail_type.h" #include "town_type.h" #include "road_func.h" @@ -407,11 +408,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) +static inline void MakeRoadDepot(TileIndex t, Owner owner, DepotID did, DiagDirection dir, RoadType rt) { SetTileType(t, MP_ROAD); SetTileOwner(t, owner); - _m[t].m2 = 0; + _m[t].m2 = did; _m[t].m3 = 0; _m[t].m4 = 0; _m[t].m5 = ROAD_TILE_DEPOT << 6 | dir; |