mirror of https://github.com/OpenTTD/OpenTTD
(svn r2494) - Fix: [newgrf] Dont assume a spriteset can only have 4 or 8 sprites.
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