diff options
author | rubidium <rubidium@openttd.org> | 2006-12-30 11:57:52 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2006-12-30 11:57:52 +0000 |
commit | afb5bd0bc6c00acff8c8f897369066fb2be56307 (patch) | |
tree | 208ddbfdccba148fd9aa969b5124fe9c495ba540 /table | |
parent | 52b6d4d486d0c8961a75141049ba514558299bc1 (diff) | |
download | openttd-afb5bd0bc6c00acff8c8f897369066fb2be56307.tar.xz |
(svn r7642) -Codechange: unify all the different locations where the animation state is stored into a single location.
Diffstat (limited to 'table')
-rw-r--r-- | table/industry_land.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/table/industry_land.h b/table/industry_land.h index 22d731706..60beb74fb 100644 --- a/table/industry_land.h +++ b/table/industry_land.h @@ -989,3 +989,34 @@ static const byte _industry_section_bits[NUM_INDUSTRY_GFXES] = { 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, }; + +/** + * When true, the tile has to be drawn using the animation + * state instead of the construction state. + * The indices into this table are the ones as described by + * the enum with GFX_*s in industry_map.h. + */ +static const bool _industry_section_draw_animation_state[NUM_INDUSTRY_GFXES] = { + false, true, false, false, false, false, false, false, // <- animated wheel tower of coal mine + false, false, false, false, false, false, false, false, + false, false, false, false, false, false, false, false, + false, false, false, false, false, false, true, true, // <- animated oil well + true, false, false, false, false, false, false, false, // <- animated oil well + false, false, false, false, false, false, false, false, + true, false, false, false, false, false, false, false, // <- animated wheel tower of copper mine + false, false, false, false, false, false, false, false, + false, false, false, false, false, false, false, false, + false, false, false, false, false, false, false, false, + false, false, false, false, false, false, false, false, + true, false, false, false, false, false, false, false, // <- animated wheel tower of gold mine + false, false, false, false, false, false, false, false, + false, false, false, false, false, false, false, false, + false, false, false, false, false, false, false, false, + false, false, false, false, false, false, false, false, + false, false, false, false, false, false, false, false, + false, false, false, false, false, false, false, false, + false, false, false, false, false, false, false, false, + false, false, false, false, false, false, false, false, + false, false, false, false, false, false, false, false, + false, false, false, false, false, false, false, +}; |