diff --git a/docs/landscape.html b/docs/landscape.html index 0bbc5be55a..d183e10d01 100644 --- a/docs/landscape.html +++ b/docs/landscape.html @@ -142,7 +142,6 @@ m5 bits 7 and 6 set: railway depot / checkpoints
  • m1: owner of the depot / checkpoint
  • m2: For waypoints, index into the array of waypoints.
  • m3 bits 0..3 = track type
  • -
  • m3 bit 4 = use custom sprite (valid only for the checkpoint)
  • m4 bits 0..3 = ground type, as per m2 bits 0..3 for railway tiles.
  • diff --git a/docs/landscape_grid.html b/docs/landscape_grid.html index 248d21ee1e..dc809a6744 100644 --- a/docs/landscape_grid.html +++ b/docs/landscape_grid.html @@ -87,7 +87,7 @@ the array so you can quickly see what is used and what is not. waypoint -inherit- XXXX XXXX XXXX XXXX - OOOX XXXX + OOOO XXXX OOOO XXXX -inherit- XXOO OXXX diff --git a/rail_cmd.c b/rail_cmd.c index 028c8592c1..1039509f95 100644 --- a/rail_cmd.c +++ b/rail_cmd.c @@ -1325,7 +1325,7 @@ static void DrawTile_Track(TileInfo *ti) if (ti->tileh != SLOPE_FLAT) DrawFoundation(ti, ti->tileh); - if (IsRailWaypoint(ti->tile) && IsCustomWaypoint(ti->tile)) { + if (IsRailWaypoint(ti->tile)) { // look for customization byte stat_id = GetWaypointByTile(ti->tile)->stat_id; const StationSpec *statspec = GetCustomStationSpec(STAT_CLASS_WAYP, stat_id); diff --git a/rail_map.h b/rail_map.h index 67973b9fb4..7cdd4d42e3 100644 --- a/rail_map.h +++ b/rail_map.h @@ -136,20 +136,6 @@ static inline TrackBits GetRailWaypointBits(TileIndex t) return _m[t].m5 & 1 ? TRACK_BIT_Y : TRACK_BIT_X; } -static inline void SetCustomWaypointSprite(TileIndex t) -{ - SETBIT(_m[t].m3, 4); -} - -static inline void ClearCustomWaypointSprite(TileIndex t) -{ - CLRBIT(_m[t].m3, 4); -} - -static inline bool IsCustomWaypoint(TileIndex t) -{ - return HASBIT(_m[t].m3, 4); -} static inline Axis GetWaypointAxis(TileIndex t) { diff --git a/waypoint.c b/waypoint.c index 5881a30f84..78b1386faa 100644 --- a/waypoint.c +++ b/waypoint.c @@ -221,13 +221,11 @@ int32 CmdBuildTrainWaypoint(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) statspec = GetCustomStationSpec(STAT_CLASS_WAYP, p1); if (statspec != NULL) { - SetCustomWaypointSprite(tile); wp->stat_id = p1; wp->grfid = statspec->grfid; wp->localidx = statspec->localidx; } else { // Specified custom graphics do not exist, so use default. - ClearCustomWaypointSprite(tile); wp->stat_id = 0; wp->grfid = 0; wp->localidx = 0;