timestamp stored debuglog

This commit is contained in:
Kai Philipp
2019-09-09 22:18:47 +02:00
parent f6c47c053b
commit d882d4f675
3 changed files with 5 additions and 3 deletions
+4
View File
@@ -62,6 +62,7 @@
#include <boost/uuid/uuid.hpp>
#include <boost/algorithm/string.hpp>
#include <gsasl.h>
#include <ctime>
#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<SessionData> 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);
}
}