summaryrefslogtreecommitdiff
path: root/station_map.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-04-16 17:29:37 +0000
committerpeter1138 <peter1138@openttd.org>2006-04-16 17:29:37 +0000
commitf52f3fa55d5c2062b538e4bcbcabdea0fdfe63a8 (patch)
tree679749a254a043ab9b75d05ea46a7f16bec8c0ae /station_map.h
parentcf9ecc68cbbec83ac07c881810ebad8981522ea7 (diff)
downloadopenttd-f52f3fa55d5c2062b538e4bcbcabdea0fdfe63a8.tar.xz
(svn r4450) - NewStations, rename *CustomStationSprite() to *CustomStationSpecIndex() to reflect their use, and alter the test for determining if a station has customised graphics.
Diffstat (limited to 'station_map.h')
-rw-r--r--station_map.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/station_map.h b/station_map.h
index 8e07fd49e..847b028d8 100644
--- a/station_map.h
+++ b/station_map.h
@@ -218,20 +218,19 @@ static inline TileIndexDiffC GetDockOffset(TileIndex t)
return dock_offset[GetDockDirection(t)];
}
-static inline bool IsCustomStationSprite(TileIndex t)
+static inline bool IsCustomStationSpecIndex(TileIndex t)
{
assert(IsTileType(t, MP_STATION));
- return HASBIT(_m[t].m3, 4);
+ return _m[t].m4 != 0;
}
-static inline void SetCustomStationSprite(TileIndex t, byte sprite)
+static inline void SetCustomStationSpecIndex(TileIndex t, byte specindex)
{
assert(IsTileType(t, MP_STATION));
- SETBIT(_m[t].m3, 4);
- _m[t].m4 = sprite;
+ _m[t].m4 = specindex;
}
-static inline uint GetCustomStationSprite(TileIndex t)
+static inline uint GetCustomStationSpecIndex(TileIndex t)
{
assert(IsTileType(t, MP_STATION));
return _m[t].m4;