diff --git a/src/object_base.h b/src/object_base.h --- 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 */