diff options
author | smatz <smatz@openttd.org> | 2009-05-22 15:13:50 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-05-22 15:13:50 +0000 |
commit | 62a7948af0ca9eb3b190a54918201e1075edcbbc (patch) | |
tree | 27a79b7850682cd43cac2462c3410ed8b567c4b2 /src/depot.cpp | |
parent | 04723b240ebc7384954f73590be517ad2a47ce04 (diff) | |
download | openttd-62a7948af0ca9eb3b190a54918201e1075edcbbc.tar.xz |
(svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation time, binary size and run time (with asserts disabled) should be improved
Diffstat (limited to 'src/depot.cpp')
-rw-r--r-- | src/depot.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/depot.cpp b/src/depot.cpp index e73490071..b034e8531 100644 --- a/src/depot.cpp +++ b/src/depot.cpp @@ -6,12 +6,13 @@ #include "depot_base.h" #include "order_func.h" #include "window_func.h" -#include "oldpool_func.h" #include "core/bitmath_func.hpp" #include "tile_map.h" #include "water_map.h" +#include "core/pool_func.hpp" -DEFINE_OLD_POOL_GENERIC(Depot, Depot) +DepotPool _depot_pool("Depot"); +INSTANTIATE_POOL_METHODS(Depot) /** * Gets a depot from a tile @@ -48,11 +49,9 @@ Depot::~Depot() /* Delete the depot-window */ DeleteWindowById(WC_VEHICLE_DEPOT, this->xy); - this->xy = INVALID_TILE; } void InitializeDepots() { - _Depot_pool.CleanPool(); - _Depot_pool.AddBlockToPool(); + _depot_pool.CleanPool(); } |