about summary refs log tree commit diff
path: root/src/game/server/entities/character.hpp
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-09-23 18:08:19 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-09-23 18:08:19 +0000
commitd9d37b945ee5796553794ef33249c22490494391 (patch)
tree03c1c97c02732095316fdcbc46fdf777de2ab9b0 /src/game/server/entities/character.hpp
parentc10ce4d17b4e21effecb28e0b43df2386ae1baaf (diff)
downloadzcatch-d9d37b945ee5796553794ef33249c22490494391.tar.gz
zcatch-d9d37b945ee5796553794ef33249c22490494391.zip
some server restructure. added hook no attach sound
Diffstat (limited to 'src/game/server/entities/character.hpp')
-rw-r--r--src/game/server/entities/character.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/game/server/entities/character.hpp b/src/game/server/entities/character.hpp
index e9909c96..9bd441ba 100644
--- a/src/game/server/entities/character.hpp
+++ b/src/game/server/entities/character.hpp
@@ -11,7 +11,19 @@
 
 class CHARACTER : public ENTITY
 {
+	/*static CHARACTER pool_data[MAX_CLIENTS];
+	static int pool_used[MAX_CLIENTS];*/
 public:
+/*
+	void operator delete(void *character)
+	{
+		(CHARACTER *)character 
+		int id = (CHARACTER *)character - (CHARACTER *)pool_data;
+		dbg_assert(pool_used[id], "");
+		pool_used[id] = 0;
+		mem_zero(&pool_data[id], sizeof(CHARACTER));
+	}*/
+
 	// player controlling this character
 	class PLAYER *player;