Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change: always assume non-track station ground tile #304

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

glx22
Copy link
Contributor

@glx22 glx22 commented Sep 20, 2023

For station ground sprite, OpenTTD always adds a railtype offset, unless a special trick is used to prevent it (like in example station before this PR).

With this PR, it is now always assumed the station ground sprite is a non-track one unless ground sprite is GROUNDSPRITE_RAIL_X or GROUNDSPRITE_RAIL_Y.

This hides the underlying GRF spec, and should simplify authors' life.

I think railtype offset might still be applied if ground sprite is from a spriteset, but it most likely depends on how the NML is written (sprite: spriteset; vs sprite: spriteset(offset)) and I didn't test, just guessing from the code.

@glx22 glx22 force-pushed the station_non_track_ground branch 2 times, most recently from 980461a to ea1699a Compare September 24, 2023 13:15
@glx22 glx22 force-pushed the station_non_track_ground branch from ea1699a to 6d36f0a Compare March 24, 2024 14:12
@glx22 glx22 force-pushed the station_non_track_ground branch from 6d36f0a to 1e5891a Compare July 9, 2024 21:23
For track station ground tile explicitly use `GROUNDSPRITE_RAIL_X` and `GROUNDSPRITE_RAIL_Y`
@glx22 glx22 force-pushed the station_non_track_ground branch from 1e5891a to 7461299 Compare December 15, 2024 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant