From 55ddce8da2b6993fa1228a8935526d40fc44de46 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 10 Sep 2009 14:33:07 +0000 Subject: (svn r17493) -Codechange: store the depot index on the map --- src/water_map.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/water_map.h') diff --git a/src/water_map.h b/src/water_map.h index 474593284..7210c90ca 100644 --- a/src/water_map.h +++ b/src/water_map.h @@ -13,6 +13,7 @@ #define WATER_MAP_H #include "core/math_func.hpp" +#include "depot_type.h" enum WaterTileType { WATER_TILE_CLEAR, @@ -196,11 +197,11 @@ static inline void MakeCanal(TileIndex t, Owner o, uint8 random_bits) _me[t].m7 = 0; } -static inline void MakeShipDepot(TileIndex t, Owner o, DepotPart base, Axis a, WaterClass original_water_class) +static inline void MakeShipDepot(TileIndex t, Owner o, DepotID did, DepotPart base, Axis a, WaterClass original_water_class) { SetTileType(t, MP_WATER); SetTileOwner(t, o); - _m[t].m2 = 0; + _m[t].m2 = did; _m[t].m3 = original_water_class; _m[t].m4 = 0; _m[t].m5 = base + a * 2; -- cgit v1.2.3-54-g00ecf