mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-28 16:09:36 +01:00
(svn r2494) - Fix: [newgrf] Dont assume a spriteset can only have 4 or 8 sprites.
This commit is contained in:
parent
b38358f8b7
commit
fc43b1ba09
5
engine.c
5
engine.c
@ -563,9 +563,8 @@ int GetCustomEngineSprite(byte engine, const Vehicle *v, byte direction)
|
||||
return 0;
|
||||
}
|
||||
|
||||
direction %= 8;
|
||||
if (rsg->sprites_per_set == 4)
|
||||
direction %= 4;
|
||||
assert(rsg->sprites_per_set <= 8);
|
||||
direction %= rsg->sprites_per_set;
|
||||
|
||||
totalsets = in_motion ? rsg->loaded_count : rsg->loading_count;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user