summaryrefslogtreecommitdiff
path: root/src/signs.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-05-22 15:13:50 +0000
committersmatz <smatz@openttd.org>2009-05-22 15:13:50 +0000
commit62a7948af0ca9eb3b190a54918201e1075edcbbc (patch)
tree27a79b7850682cd43cac2462c3410ed8b567c4b2 /src/signs.cpp
parent04723b240ebc7384954f73590be517ad2a47ce04 (diff)
downloadopenttd-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/signs.cpp')
-rw-r--r--src/signs.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/signs.cpp b/src/signs.cpp
index d1a3e7452..3da538a71 100644
--- a/src/signs.cpp
+++ b/src/signs.cpp
@@ -10,12 +10,13 @@
#include "viewport_func.h"
#include "zoom_func.h"
#include "functions.h"
-#include "oldpool_func.h"
+#include "core/pool_func.hpp"
#include "table/strings.h"
/* Initialize the sign-pool */
-DEFINE_OLD_POOL_GENERIC(Sign, Sign)
+SignPool _sign_pool("Sign");
+INSTANTIATE_POOL_METHODS(Sign)
Sign::Sign(Owner owner)
{
@@ -29,7 +30,6 @@ Sign::~Sign()
if (CleaningPool()) return;
DeleteRenameSignWindow(this->index);
- this->owner = INVALID_OWNER;
}
/**
@@ -80,6 +80,5 @@ void MarkSignDirty(Sign *si)
*/
void InitializeSigns()
{
- _Sign_pool.CleanPool();
- _Sign_pool.AddBlockToPool();
+ _sign_pool.CleanPool();
}