Fixed avatars in network (non-public) games.

This commit is contained in:
lotodore
2007-10-15 08:37:32 +00:00
parent 94fbbe9ac5
commit ad8095f379
3 changed files with 19 additions and 6 deletions
+3 -2
View File
@@ -845,6 +845,7 @@ void mainWindowImpl::callCreateNetworkGameDialog() {
myServerGuiInterface.reset(new ServerGuiWrapper(myConfig, mySession->getGui(), mySession->getGui(), mySession->getGui()));
{
boost::shared_ptr<Session> session(new Session(myServerGuiInterface.get(), myConfig));
session->init(mySession->getAvatarManager());
myServerGuiInterface->setSession(session);
}
}
@@ -1151,9 +1152,9 @@ void mainWindowImpl::initGui(int speed)
void mainWindowImpl::showClientDialog()
{
if (mySession->GetGameType() == Session::GAME_TYPE_NETWORK)
if (mySession->getGameType() == Session::GAME_TYPE_NETWORK)
showNetworkStartDialog();
else if (mySession->GetGameType() == Session::GAME_TYPE_INTERNET)
else if (mySession->getGameType() == Session::GAME_TYPE_INTERNET)
showLobbyDialog();
}