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(); boost::shared_ptr<NetPacket> packet = buf.receivedPackets.front();
buf.receivedPackets.pop_front(); buf.receivedPackets.pop_front();
if (game) // if (game)
game->HandlePacket(session, packet); // game->HandlePacket(session, packet);
else // else
HandlePacket(session, packet); HandlePacket(session, packet);
} }
session.sessionData->GetAsioSocket()->async_read_some( session.sessionData->GetAsioSocket()->async_read_some(
@@ -533,7 +533,7 @@ ServerLobbyThread::HandleRead(SessionId sessionId, const boost::system::error_co
boost::shared_ptr<ServerGameThread> game; boost::shared_ptr<ServerGameThread> game;
if (gameId) if (gameId)
{ {
GameMap::iterator pos = m_gameMap.find(joinGameData.gameId); GameMap::iterator pos = m_gameMap.find(gameId);
if (pos != m_gameMap.end()) if (pos != m_gameMap.end())
game = pos->second; game = pos->second;
+3
View File
@@ -23,6 +23,9 @@
#include <boost/asio.hpp> #include <boost/asio.hpp>
#ifndef _WIN32
#define SOCKET int
#endif
class NetContext class NetContext
{ {
+1
View File
@@ -171,6 +171,7 @@ private:
boost::timers::portable::microsec_timer m_voteKickActionTimer; boost::timers::portable::microsec_timer m_voteKickActionTimer;
friend class ServerLobbyThread;
friend class AbstractServerGameStateReceiving; friend class AbstractServerGameStateReceiving;
friend class AbstractServerGameStateRunning; friend class AbstractServerGameStateRunning;
friend class AbstractServerGameStateTimer; friend class AbstractServerGameStateTimer;