summaryrefslogtreecommitdiff
path: root/src/object_base.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-09-05 13:31:39 +0000
committerfrosch <frosch@openttd.org>2010-09-05 13:31:39 +0000
commit42a996ec23f15e74c0fe5ba0fdd5ac992456e7ac (patch)
tree201bd6edb559d4b61be8eeba31cf147a7660c189 /src/object_base.h
parentce1cae81ea55ff6bc45d4e2ed11d5c487ac6ba07 (diff)
downloadopenttd-42a996ec23f15e74c0fe5ba0fdd5ac992456e7ac.tar.xz
(svn r20743) -Fix: Make testruns of clearing an object tile not influence repeated testruns resp. the exec run.
Diffstat (limited to 'src/object_base.h')
-rw-r--r--src/object_base.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/object_base.h b/src/object_base.h
index fe889073b..3ca3da111 100644
--- a/src/object_base.h
+++ b/src/object_base.h
@@ -87,6 +87,14 @@ protected:
#define FOR_ALL_OBJECTS_FROM(var, start) FOR_ALL_ITEMS_FROM(Object, object_index, var, start)
#define FOR_ALL_OBJECTS(var) FOR_ALL_OBJECTS_FROM(var, 0)
-extern SmallVector<TileArea, 4> _cleared_object_areas;
+/**
+ * Keeps track of removed objects during execution/testruns of commands.
+ */
+struct ClearedObjectArea {
+ TileIndex first_tile; ///< The first tile being cleared, which then causes the whole object to be cleared.
+ TileArea area; ///< The area of the object.
+};
+
+extern SmallVector<ClearedObjectArea, 4> _cleared_object_areas;
#endif /* OBJECT_BASE_H */