summaryrefslogtreecommitdiff
path: root/src/object_base.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-28 18:28:34 +0000
committerrubidium <rubidium@openttd.org>2010-08-28 18:28:34 +0000
commite0ba6550d2885ccfade874679fa792648df416f5 (patch)
treebdb38086be6f15051871ce66bb6c325a4fba2d3f /src/object_base.h
parentb376f8ae15a053c3a8f54431517da0c235f45489 (diff)
downloadopenttd-e0ba6550d2885ccfade874679fa792648df416f5.tar.xz
(svn r20658) -Codechange: add the colour of an object to the object instance
Diffstat (limited to 'src/object_base.h')
-rw-r--r--src/object_base.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/object_base.h b/src/object_base.h
index d5f796191..1b814fa3f 100644
--- a/src/object_base.h
+++ b/src/object_base.h
@@ -23,9 +23,10 @@ extern ObjectPool _object_pool;
/** An object, such as transmitter, on the map. */
struct Object : ObjectPool::PoolItem<&_object_pool> {
- Town *town; ///< Town the object is built in
- TileArea location; ///< Location of the object
- Date build_date; ///< Date of construction
+ Town *town; ///< Town the object is built in
+ TileArea location; ///< Location of the object
+ Date build_date; ///< Date of construction
+ byte colour; ///< Colour of the object, for display purpose
/** Make sure the object isn't zeroed. */
Object() {}