Changeset - r19759:9c1aea7d3795
[Not reviewed]
master
0 2 0
frosch - 12 years ago 2012-11-12 20:13:17
frosch@openttd.org
(svn r24714) -Fix [FS#5337]: [NewGRF] Draw default foundations if resolving of custom station foundation sprites fails.
2 files changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/newgrf_station.cpp
Show inline comments
 
@@ -630,7 +630,7 @@ SpriteID GetCustomStationRelocation(cons
 
 * @param tile Station tile being drawn
 
 * @param layout Spritelayout as returned by previous callback
 
 * @param edge_info Information about northern tile edges; whether they need foundations or merge into adjacent tile's foundations.
 
 * @return First sprite of a set of foundation sprites for various slopes.
 
 * @return First sprite of a set of foundation sprites for various slopes, or 0 if default foundations shall be drawn.
 
 */
 
SpriteID GetCustomStationFoundationRelocation(const StationSpec *statspec, BaseStation *st, TileIndex tile, uint layout, uint edge_info)
 
{
src/station_cmd.cpp
Show inline comments
 
@@ -2652,6 +2652,7 @@ static void DrawTile_Station(TileInfo *t
 
			if (!HasFoundationNW(ti->tile, slope, z)) SetBit(edge_info, 0);
 
			if (!HasFoundationNE(ti->tile, slope, z)) SetBit(edge_info, 1);
 
			SpriteID image = GetCustomStationFoundationRelocation(statspec, st, ti->tile, tile_layout, edge_info);
 
			if (image == 0) goto draw_default_foundation;
 

	
 
			if (HasBit(statspec->flags, SSF_EXTENDED_FOUNDATIONS)) {
 
				/* Station provides extended foundations. */
0 comments (0 inline, 0 general)