diff options
author | belugas <belugas@openttd.org> | 2007-10-10 00:42:52 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2007-10-10 00:42:52 +0000 |
commit | 22fd539413fac5d53a6e1b91872addf0be49fef6 (patch) | |
tree | acf9621626802020c534491579c4199d2355c466 /src/newgrf_industrytiles.cpp | |
parent | b398b6c71876bcd0f2d929861549e28a920e9a5e (diff) | |
download | openttd-22fd539413fac5d53a6e1b91872addf0be49fef6.tar.xz |
(svn r11241) -Fix: Obiwan error on industry animated tiles. Spotted and fixed by Csaboka
Diffstat (limited to 'src/newgrf_industrytiles.cpp')
-rw-r--r-- | src/newgrf_industrytiles.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_industrytiles.cpp b/src/newgrf_industrytiles.cpp index 0e0b77fb8..f090d12c5 100644 --- a/src/newgrf_industrytiles.cpp +++ b/src/newgrf_industrytiles.cpp @@ -294,7 +294,7 @@ void AnimateNewIndustryTile(TileIndex tile) bool frame_set_by_callback = false; 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)) { uint16 callback_res = GetIndustryTileCallback(CBID_INDTILE_ANIM_NEXT_FRAME, HASBIT(itspec->animation_special_flags, 0) ? Random() : 0, 0, gfx, ind, tile); |