Changeset - r25444:71e2ca83780d
[Not reviewed]
master
0 1 0
PeterN - 3 years ago 2021-05-12 20:35:48
peter1138@openttd.org
Fix #9186: Fix incorrect bounding box height causing station sprite glitch. (#9187)

Increased height of small station building bounding box to cover the build rather than just the platform.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/table/station_land.h
Show inline comments
 
@@ -71,13 +71,13 @@ static const DrawTileSeqStruct _station_
 
};
 

	
 
static const DrawTileSeqStruct _station_display_datas_2[] = {
 
	TILE_SEQ_LINE( 0,  0,  0, 16,  5,  2, SPR_RAIL_PLATFORM_BUILDING_X | (1U << PALETTE_MODIFIER_COLOUR))
 
	TILE_SEQ_LINE( 0,  0,  0, 16,  5, 15, SPR_RAIL_PLATFORM_BUILDING_X | (1U << PALETTE_MODIFIER_COLOUR))
 
	TILE_SEQ_LINE( 0, 11,  0, 16,  5,  2, SPR_RAIL_PLATFORM_X_FRONT    | (1U << PALETTE_MODIFIER_COLOUR))
 
	TILE_SEQ_END()
 
};
 

	
 
static const DrawTileSeqStruct _station_display_datas_3[] = {
 
	TILE_SEQ_LINE( 0,  0,  0,  5, 16,  2, SPR_RAIL_PLATFORM_BUILDING_Y | (1U << PALETTE_MODIFIER_COLOUR))
 
	TILE_SEQ_LINE( 0,  0,  0,  5, 16, 15, SPR_RAIL_PLATFORM_BUILDING_Y | (1U << PALETTE_MODIFIER_COLOUR))
 
	TILE_SEQ_LINE(11,  0,  0,  5, 16,  2, SPR_RAIL_PLATFORM_Y_FRONT    | (1U << PALETTE_MODIFIER_COLOUR))
 
	TILE_SEQ_END()
 
};
0 comments (0 inline, 0 general)