Save point used when adding station to viewport kd tree, use for removal

This commit is contained in:
Jonathan G Rennison
2019-04-09 02:32:28 +01:00
parent 3807f0551d
commit 070160af40
7 changed files with 36 additions and 7 deletions

View File

@@ -16,6 +16,7 @@
#include "command_type.h"
#include "viewport_type.h"
#include "station_map.h"
#include "core/geometry_type.hpp"
typedef Pool<BaseStation, StationID, 32, 64000> StationPool;
extern StationPool _station_pool;
@@ -76,6 +77,8 @@ struct BaseStation : StationPool::PoolItem<&_station_pool> {
TileArea train_station; ///< Tile area the train 'station' part covers
StationRect rect; ///< NOSAVE: Station spread out rectangle maintained by StationRect::xxx() functions
Point viewport_sign_kdtree_pt; ///< NOSAVE: Viewport sign kd tree: saved point (for tree removals)
/**
* Initialize the base station.
* @param tile The location of the station sign