forked from mirror/OpenTTD
(svn r20743) -Fix: Make testruns of clearing an object tile not influence repeated testruns resp. the exec run.
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user