summaryrefslogtreecommitdiff
path: root/industry_map.h
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2006-04-15 01:06:53 +0000
committerbelugas <belugas@openttd.org>2006-04-15 01:06:53 +0000
commitea706f8eade49a6dd61be942ba6d16e7847ccbeb (patch)
tree9f5582fd2da07ef84be1070e505d2b9bd98bbf03 /industry_map.h
parent504f88902e99187d28748efbf19b1e92b5c8852f (diff)
downloadopenttd-ea706f8eade49a6dd61be942ba6d16e7847ccbeb.tar.xz
(svn r4425) Fix bug introduced in r4411 : while IS_BYTE_INSIDE, max value is STRICKLY LESS THEN. This caused airports animations to stay unanimated. Industries were similarly affected.
Thanks to Richk67 for finding it. Also, more Gfx define and use.
Diffstat (limited to 'industry_map.h')
-rw-r--r--industry_map.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/industry_map.h b/industry_map.h
index a4bf06eef..529e75317 100644
--- a/industry_map.h
+++ b/industry_map.h
@@ -11,8 +11,18 @@
typedef byte IndustryGfx;
+
+/**
+ * The following enums are indices used to know what to draw for this industry tile.
+ * They all are pointing toward array _industry_draw_tile_data, in table/industry_land.h
+ * How to calculate the correct position ? GFXid << 2 | IndustryStage (0 to 3)
+ */
enum {
GFX_POWERPLANT_SPARKS = 10,
+ GFX_OILWELL_BASE = 29,
+ GFX_OILWELL_ANIM1 = 30,
+ GFX_OILWELL_ANIM2 = 31,
+ GFX_OILWELL_ANIM3 = 32,
GFX_BUBBLE_CATCHER = 162,
GFX_TOFFEE_QUARY = 165,
GFX_SUGAR_MINE_SIEVE = 174,