mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-22 23:26:34 +00:00
(svn r11241) -Fix: Obiwan error on industry animated tiles. Spotted and fixed by Csaboka
This commit is contained in:
parent
129d5c6e8a
commit
c446c5ffb3
@ -294,7 +294,7 @@ void AnimateNewIndustryTile(TileIndex tile)
|
|||||||
|
|
||||||
bool frame_set_by_callback = false;
|
bool frame_set_by_callback = false;
|
||||||
byte frame = GetIndustryAnimationState(tile);
|
byte frame = GetIndustryAnimationState(tile);
|
||||||
uint16 num_frames = GB(itspec->animation_info, 0, 8) + 1;
|
uint16 num_frames = GB(itspec->animation_info, 0, 8);
|
||||||
|
|
||||||
if (HASBIT(itspec->callback_flags, CBM_INDT_ANIM_NEXT_FRAME)) {
|
if (HASBIT(itspec->callback_flags, CBM_INDT_ANIM_NEXT_FRAME)) {
|
||||||
uint16 callback_res = GetIndustryTileCallback(CBID_INDTILE_ANIM_NEXT_FRAME, HASBIT(itspec->animation_special_flags, 0) ? Random() : 0, 0, gfx, ind, tile);
|
uint16 callback_res = GetIndustryTileCallback(CBID_INDTILE_ANIM_NEXT_FRAME, HASBIT(itspec->animation_special_flags, 0) ? Random() : 0, 0, gfx, ind, tile);
|
||||||
|
Loading…
Reference in New Issue
Block a user