summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeterN <peter1138@openttd.org>2021-05-12 21:35:48 +0100
committerGitHub <noreply@github.com>2021-05-12 21:35:48 +0100
commitba193f2e23ce82cdfca37771147848751c6993e1 (patch)
tree8d59f802ac6d0ffd19a7c8b571f731080192a286
parent3e7e2d9ca3f798bd1a5f72574510d7205e5f97b2 (diff)
downloadopenttd-ba193f2e23ce82cdfca37771147848751c6993e1.tar.xz
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.
-rw-r--r--src/table/station_land.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/table/station_land.h b/src/table/station_land.h
index 8429914f3..53a69e1e2 100644
--- a/src/table/station_land.h
+++ b/src/table/station_land.h
@@ -71,13 +71,13 @@ static const DrawTileSeqStruct _station_display_datas_1[] = {
};
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()
};