From 42a996ec23f15e74c0fe5ba0fdd5ac992456e7ac Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 5 Sep 2010 13:31:39 +0000 Subject: (svn r20743) -Fix: Make testruns of clearing an object tile not influence repeated testruns resp. the exec run. --- src/object_base.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/object_base.h') 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 _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 _cleared_object_areas; #endif /* OBJECT_BASE_H */ -- cgit v1.2.3-54-g00ecf