summaryrefslogtreecommitdiff
path: root/table
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-12-30 11:57:52 +0000
committerrubidium <rubidium@openttd.org>2006-12-30 11:57:52 +0000
commit5f88e816416ee78b3b693253c0ff298c36459a8b (patch)
tree208ddbfdccba148fd9aa969b5124fe9c495ba540 /table
parentc7b1fd6fc2dd73e9b9bf150b5bb81e340fa75958 (diff)
downloadopenttd-5f88e816416ee78b3b693253c0ff298c36459a8b.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.h31
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,
+};