summaryrefslogtreecommitdiff
path: root/sprite.h
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2006-04-24 21:10:56 +0000
committerbelugas <belugas@openttd.org>2006-04-24 21:10:56 +0000
commitebf6797678b58aa558ab933fd3f5931fcf0406b9 (patch)
treed080bac8a9cda725440a23acb119e6257fe7731c /sprite.h
parent7aed9a62f2150f35b31b2ea52a4de07c1aa50ce2 (diff)
downloadopenttd-ebf6797678b58aa558ab933fd3f5931fcf0406b9.tar.xz
(svn r4568) CodeChange : Bring definitions and uses of DrawTypesStructures toguether.
Diffstat (limited to 'sprite.h')
-rw-r--r--sprite.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/sprite.h b/sprite.h
index f665fb0d5..1af416e1d 100644
--- a/sprite.h
+++ b/sprite.h
@@ -22,6 +22,21 @@ typedef struct DrawTileSprites {
const DrawTileSeqStruct* seq;
} DrawTileSprites;
+/**
+ * This structure is the same for both Industries and Houses.
+ * Buildings here reference a general type of construction
+ */
+typedef struct DrawBuildingsTileStruct {
+ SpriteID ground;
+ SpriteID building;
+ byte subtile_x:4;
+ byte subtile_y:4;
+ byte width:4;
+ byte height:4;
+ byte dz;
+ byte draw_proc; /* this allows to specify a special drawing procedure.*/
+} DrawBuildingsTileStruct;
+
// Iterate through all DrawTileSeqStructs in DrawTileSprites.
#define foreach_draw_tile_seq(idx, list) for (idx = list; ((byte) idx->delta_x) != 0x80; idx++)