diff --git a/src/net/common/serverlobbythread.cpp b/src/net/common/serverlobbythread.cpp index 4531cdd8..9729e96a 100644 --- a/src/net/common/serverlobbythread.cpp +++ b/src/net/common/serverlobbythread.cpp @@ -62,6 +62,7 @@ #include #include #include +#include #define SERVER_MAX_NUM_LOBBY_SESSIONS 512 // Maximum number of idle users in lobby. #define SERVER_MAX_NUM_TOTAL_SESSIONS 2000 // Total maximum of sessions, fitting a 2048 handle limit @@ -1437,6 +1438,9 @@ ServerLobbyThread::HandleNetPacketJoinGame(boost::shared_ptr sessio // ){ // SendJoinGameFailed(session, joinGame.gameid(), NTF_NET_JOIN_IP_BLOCKED); } else { + // @FIXME: debug only - final poition is gamestart + session->AddPlayerLastGame((unsigned long)time(NULL)); + LOG_ERROR("TimeStamp stored: " << session->GetPlayerLastGames.front()); MoveSessionToGame(game, session, joinGame.autoleave(), false); } } diff --git a/src/net/common/sessiondata.cpp b/src/net/common/sessiondata.cpp index f5f98744..7f67dde7 100644 --- a/src/net/common/sessiondata.cpp +++ b/src/net/common/sessiondata.cpp @@ -38,8 +38,7 @@ #include #include -// #include // @TODO: remove if really not necessary -// #include // same here +#include using namespace std; using boost::asio::ip::tcp; diff --git a/src/net/common/sessionmanager.cpp b/src/net/common/sessionmanager.cpp index ab132268..11337f70 100644 --- a/src/net/common/sessionmanager.cpp +++ b/src/net/common/sessionmanager.cpp @@ -35,7 +35,6 @@ #include #include -#include using namespace std;