Fixing compiler errors. Still broken in terms of network functionality.
This commit is contained in:
@@ -513,9 +513,9 @@ ServerLobbyThread::HandleRead(SessionId sessionId, const boost::system::error_co
|
||||
{
|
||||
boost::shared_ptr<NetPacket> packet = buf.receivedPackets.front();
|
||||
buf.receivedPackets.pop_front();
|
||||
if (game)
|
||||
game->HandlePacket(session, packet);
|
||||
else
|
||||
// if (game)
|
||||
// game->HandlePacket(session, packet);
|
||||
// else
|
||||
HandlePacket(session, packet);
|
||||
}
|
||||
session.sessionData->GetAsioSocket()->async_read_some(
|
||||
@@ -533,7 +533,7 @@ ServerLobbyThread::HandleRead(SessionId sessionId, const boost::system::error_co
|
||||
boost::shared_ptr<ServerGameThread> game;
|
||||
if (gameId)
|
||||
{
|
||||
GameMap::iterator pos = m_gameMap.find(joinGameData.gameId);
|
||||
GameMap::iterator pos = m_gameMap.find(gameId);
|
||||
|
||||
if (pos != m_gameMap.end())
|
||||
game = pos->second;
|
||||
|
||||
@@ -23,6 +23,9 @@
|
||||
|
||||
#include <boost/asio.hpp>
|
||||
|
||||
#ifndef _WIN32
|
||||
#define SOCKET int
|
||||
#endif
|
||||
|
||||
class NetContext
|
||||
{
|
||||
|
||||
@@ -171,6 +171,7 @@ private:
|
||||
|
||||
boost::timers::portable::microsec_timer m_voteKickActionTimer;
|
||||
|
||||
friend class ServerLobbyThread;
|
||||
friend class AbstractServerGameStateReceiving;
|
||||
friend class AbstractServerGameStateRunning;
|
||||
friend class AbstractServerGameStateTimer;
|
||||
|
||||
Reference in New Issue
Block a user