Loïc Guilloux
Loïc Guilloux
Fixes #9914 and supersede #9915. ## Motivation / Problem [#8568](https://github.com/OpenTTD/OpenTTD/commit/86818e5ae8a170951d00eb0060767c9d1687540c) did not fix all intensive pathfinder calls loops for blocked vehicles. ## Description Handled another blocked vehicle situation. Removed the...
## Motivation / Problem See https://github.com/OpenTTD/OpenTTD/issues/9720#issuecomment-980808344 ## Description During loading, AI/GS saved data is stored in `ScriptConfig`. AI/GS are started after loading is fully completed. On AI/GS start, the saved...
`replace()` can only be used for TTD sprites (0-4895), or with return value of `reserve_sprites()`.
Each spriteset gets its own unique ID. Removes the "all spritesets in a single sprite group/layout must have the same size" limitation. Not really tested beside checking NFO output.
https://github.com/OpenTTD/OpenTTD/pull/10953 added station variable 6B to get extended station id of nearby tiles. Since roadstop feature exists only in OpenTTD 14+, I just replaced var68 with var6B. But for stations...
Spritelayouts can consume a huge amount of registers, especially with stations as all the spritelayouts are merged into a single action 0. https://gist.github.com/glx22/19446d63c287f050719c54cb099c4f8f is a station using 40 spritelayouts and...
It's possible to use named parameters as constants, but it doesn't always work and it's not very efficient in the resulting GRF when it does work. Introduce the `const` keyword...
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...
When second argument of a BinOp is `LOAD_TEMP()`, it is first copied into a temporary register instead of being accessed directly. Skip the useless copy.