diff options
author | hackykid <hackykid@openttd.org> | 2005-06-27 21:34:31 +0000 |
---|---|---|
committer | hackykid <hackykid@openttd.org> | 2005-06-27 21:34:31 +0000 |
commit | 77d99eb807b378fcfe0424d5c6f27ec47b9a7b3d (patch) | |
tree | df82715b2a2f8d161633b49238659e253c0f6c07 /engine.c | |
parent | f81766c3fd741c3772a8b289e94a4362056f9938 (diff) | |
download | openttd-77d99eb807b378fcfe0424d5c6f27ec47b9a7b3d.tar.xz |
(svn r2494) - Fix: [newgrf] Dont assume a spriteset can only have 4 or 8 sprites.
Diffstat (limited to 'engine.c')
-rw-r--r-- | engine.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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; |