diff options
author | frosch <frosch@openttd.org> | 2010-02-07 12:04:44 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-02-07 12:04:44 +0000 |
commit | fb9b833dc49674ffa98402cb6a66347e0fd8eef5 (patch) | |
tree | c67ae3626e8301a6119b320a781592e540296916 /src/newgrf_industrytiles.cpp | |
parent | 76dbdca2f87fcd1cbbc6364a2082d63ed2209761 (diff) | |
download | openttd-fb9b833dc49674ffa98402cb6a66347e0fd8eef5.tar.xz |
(svn r19053) -Codechange: Add an enum for the special flags of industry tiles. (based on andythenorth' work)
Diffstat (limited to 'src/newgrf_industrytiles.cpp')
-rw-r--r-- | src/newgrf_industrytiles.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/newgrf_industrytiles.cpp b/src/newgrf_industrytiles.cpp index 86ac36f24..70eebe0a8 100644 --- a/src/newgrf_industrytiles.cpp +++ b/src/newgrf_industrytiles.cpp @@ -291,7 +291,8 @@ void AnimateNewIndustryTile(TileIndex tile) uint16 num_frames = GB(itspec->animation_info, 0, 8); if (HasBit(itspec->callback_mask, 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, + (itspec->special_flags & INDTILE_SPECIAL_NEXTFRAME_RANDOMBITS) ? Random() : 0, 0, gfx, ind, tile); if (callback_res != CALLBACK_FAILED) { frame_set_by_callback = true; |