(svn r2494) - Fix: [newgrf] Dont assume a spriteset can only have 4 or 8 sprites.

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
hackykid 19 years ago
parent b38358f8b7
commit fc43b1ba09

@ -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…
Cancel
Save