(svn r20743) -Fix: Make testruns of clearing an object tile not influence repeated testruns resp. the exec run.

This commit is contained in:
frosch
2010-09-05 13:31:39 +00:00
parent ce1cae81ea
commit 42a996ec23
4 changed files with 31 additions and 8 deletions

View File

@@ -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 */