From eb21e9d6bb772c6fba533bfe4b421dc7efe181b1 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Wed, 24 Sep 2008 09:03:49 +0000 Subject: cleaned up the code a bit more. pooling of character and player objects with reusable macros. fixed crashing when changing maps and a couple of other bugs --- src/game/server/player.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/game/server/player.hpp') diff --git a/src/game/server/player.hpp b/src/game/server/player.hpp index 9836bffc..c92265a8 100644 --- a/src/game/server/player.hpp +++ b/src/game/server/player.hpp @@ -7,9 +7,12 @@ // player object class PLAYER { + MACRO_ALLOC_POOL_ID() +private: CHARACTER *character; public: PLAYER(int client_id); + ~PLAYER(); // TODO: clean this up char skin_name[64]; -- cgit 1.4.1