Fixing compiler errors. Still broken in terms of network functionality.

This commit is contained in:
lotodore
2009-05-06 21:09:58 +00:00
parent 411ede3500
commit d7ca4d67b5
3 changed files with 8 additions and 4 deletions
+4 -4
View File
@@ -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;
+3
View File
@@ -23,6 +23,9 @@
#include <boost/asio.hpp>
#ifndef _WIN32
#define SOCKET int
#endif
class NetContext
{
+1
View File
@@ -171,6 +171,7 @@ private:
boost::timers::portable::microsec_timer m_voteKickActionTimer;
friend class ServerLobbyThread;
friend class AbstractServerGameStateReceiving;
friend class AbstractServerGameStateRunning;
friend class AbstractServerGameStateTimer;