mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-29 16:40:25 +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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
direction %= 8;
|
assert(rsg->sprites_per_set <= 8);
|
||||||
if (rsg->sprites_per_set == 4)
|
direction %= rsg->sprites_per_set;
|
||||||
direction %= 4;
|
|
||||||
|
|
||||||
totalsets = in_motion ? rsg->loaded_count : rsg->loading_count;
|
totalsets = in_motion ? rsg->loaded_count : rsg->loading_count;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user