(svn r17493) -Codechange: store the depot index on the map

This commit is contained in:
rubidium
2009-09-10 14:33:07 +00:00
parent bb94724a09
commit 55ddce8da2
11 changed files with 45 additions and 15 deletions

View File

@@ -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;