(svn r11241) -Fix: Obiwan error on industry animated tiles. Spotted and fixed by Csaboka
authorbelugas
Wed, 10 Oct 2007 00:42:52 +0000
changeset 8203 c2fa2ac2c65d
parent 8202 ec7e5b2d35c9
child 8204 8ebeee77f39c
(svn r11241) -Fix: Obiwan error on industry animated tiles. Spotted and fixed by Csaboka
src/newgrf_industrytiles.cpp
--- a/src/newgrf_industrytiles.cpp	Wed Oct 10 00:01:41 2007 +0000
+++ b/src/newgrf_industrytiles.cpp	Wed Oct 10 00:42:52 2007 +0000
@@ -294,7 +294,7 @@
 
 	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);