(svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation time, binary size and run time (with asserts disabled) should be improved
This commit is contained in:
@@ -8,11 +8,12 @@
|
||||
#include "signs_type.h"
|
||||
#include "viewport_type.h"
|
||||
#include "tile_type.h"
|
||||
#include "oldpool.h"
|
||||
#include "core/pool.hpp"
|
||||
|
||||
DECLARE_OLD_POOL(Sign, Sign, 2, 16000)
|
||||
typedef Pool<Sign, SignID, 16, 64000> SignPool;
|
||||
extern SignPool _sign_pool;
|
||||
|
||||
struct Sign : PoolItem<Sign, SignID, &_Sign_pool> {
|
||||
struct Sign : SignPool::PoolItem<&_sign_pool> {
|
||||
char *name;
|
||||
ViewportSign sign;
|
||||
int32 x;
|
||||
@@ -27,8 +28,6 @@ struct Sign : PoolItem<Sign, SignID, &_Sign_pool> {
|
||||
|
||||
/** Destroy the sign */
|
||||
~Sign();
|
||||
|
||||
inline bool IsValid() const { return this->owner != INVALID_OWNER; }
|
||||
};
|
||||
|
||||
#define FOR_ALL_SIGNS_FROM(var, start) FOR_ALL_ITEMS_FROM(Sign, sign_index, var, start)
|
||||
|
Reference in New Issue
Block a user