diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-07-25 07:24:57 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-07-25 07:24:57 +0000 |
| commit | 1aecc644de9e2cb81e3f2fd6c8abc86f37debad7 (patch) | |
| tree | a2a42c9e56b52cd0b9515f89dd6d862f14df24ff /src/engine/server/server.cpp | |
| parent | 52c987bfd7abcd8acecdc7da580b8e56be0bd625 (diff) | |
| download | zcatch-1aecc644de9e2cb81e3f2fd6c8abc86f37debad7.tar.gz zcatch-1aecc644de9e2cb81e3f2fd6c8abc86f37debad7.zip | |
fixed errors in the network code
Diffstat (limited to 'src/engine/server/server.cpp')
| -rw-r--r-- | src/engine/server/server.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
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); } } }; |