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/rail_map.h | |
parent | bb94724a092750794e8c2ad1a6537fac6b902b9e (diff) | |
download | openttd-55ddce8da2b6993fa1228a8935526d40fc44de46.tar.xz |
(svn r17493) -Codechange: store the depot index on the map
Diffstat (limited to 'src/rail_map.h')
-rw-r--r-- | src/rail_map.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rail_map.h b/src/rail_map.h index f8a74d0eb..b3fc68d90 100644 --- a/src/rail_map.h +++ b/src/rail_map.h @@ -13,6 +13,7 @@ #define RAIL_MAP_H #include "rail_type.h" +#include "depot_type.h" #include "signal_func.h" #include "direction_func.h" #include "track_func.h" @@ -551,11 +552,11 @@ static inline void MakeRailNormal(TileIndex t, Owner o, TrackBits b, RailType r) } -static inline void MakeRailDepot(TileIndex t, Owner o, DiagDirection d, RailType r) +static inline void MakeRailDepot(TileIndex t, Owner o, DepotID did, DiagDirection d, RailType r) { SetTileType(t, MP_RAILWAY); SetTileOwner(t, o); - _m[t].m2 = 0; + _m[t].m2 = did; _m[t].m3 = r; _m[t].m4 = 0; _m[t].m5 = RAIL_TILE_DEPOT << 6 | d; |