From 1aecc644de9e2cb81e3f2fd6c8abc86f37debad7 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Wed, 25 Jul 2007 07:24:57 +0000 Subject: fixed errors in the network code --- src/engine/server/server.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/engine/server/server.cpp') diff --git a/src/engine/server/server.cpp b/src/engine/server/server.cpp index 1af0da3b..d66fa2ee 100644 --- a/src/engine/server/server.cpp +++ b/src/engine/server/server.cpp @@ -410,9 +410,12 @@ public: } else if(msg == NETMSG_ENTERGAME) { - dbg_msg("game", "player as entered the game. cid=%x", cid); - clients[cid].state = client::STATE_INGAME; - mods_client_enter(cid); + if(clients[cid].state != client::STATE_INGAME) + { + dbg_msg("game", "player as entered the game. cid=%x", cid); + clients[cid].state = client::STATE_INGAME; + mods_client_enter(cid); + } } else if(msg == NETMSG_INPUT) { @@ -532,8 +535,6 @@ public: clients[cid].snapshots.purge_all(); mods_client_drop(cid); - - dbg_msg("server", "del client %d", cid); } // check for new clients @@ -548,8 +549,6 @@ public: clients[cid].clan[0] = 0; clients[cid].snapshots.purge_all(); clients[cid].last_acked_snapshot = -1; - - dbg_msg("server", "new client %d", cid); } } }; -- cgit 1.4.1