Change: always assume non-track station ground tile #304
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
orGROUNDSPRITE_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;
vssprite: spriteset(offset)
) and I didn't test, just guessing from the code.