summaryrefslogtreecommitdiff
path: root/rail_cmd.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2005-11-11 20:34:16 +0000
committerpeter1138 <peter1138@openttd.org>2005-11-11 20:34:16 +0000
commitb1075ca7a43ea39cddf4ec4406f99bb5aa37a113 (patch)
tree0cfaa224bb5153de119f9d01928afb07925e0481 /rail_cmd.c
parent1c867927a3a8b8c26e1758bbd1f367a4f684e084 (diff)
downloadopenttd-b1075ca7a43ea39cddf4ec4406f99bb5aa37a113.tar.xz
(svn r3166) Constify read-only accesses of custom stations
Diffstat (limited to 'rail_cmd.c')
-rw-r--r--rail_cmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rail_cmd.c b/rail_cmd.c
index c6e49a8fc..1faeaa720 100644
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -1518,12 +1518,12 @@ static void DrawTile_Track(TileInfo *ti)
if (IsRailWaypoint(m5) && HASBIT(_m[ti->tile].m3, 4)) {
// look for customization
- StationSpec *stat = GetCustomStation(STAT_CLASS_WAYP, _m[ti->tile].m4);
+ const StationSpec *stat = GetCustomStation(STAT_CLASS_WAYP, _m[ti->tile].m4);
- if (stat) {
+ if (stat != NULL) {
DrawTileSeqStruct const *seq;
// emulate station tile - open with building
- DrawTileSprites *cust = &stat->renderdata[2 + (m5 & 0x1)];
+ const DrawTileSprites *cust = &stat->renderdata[2 + (m5 & 0x1)];
uint32 relocation = GetCustomStationRelocation(stat, ComposeWaypointStation(ti->tile), 0);
/* We don't touch the 0x8000 bit. In all this