This commit is contained in:
Mark Vejvoda 2010-09-02 13:53:23 +00:00
parent 8ca44feffc
commit f5711b0949
2 changed files with 20 additions and 16 deletions

View File

@ -797,6 +797,7 @@ void MenuStateConnectedGame::update() {
}
}
if(enableFactionTexturePreview == true) {
if( clientInterface != NULL && clientInterface->isConnected() &&
gameSettings != NULL) {
@ -810,6 +811,7 @@ void MenuStateConnectedGame::update() {
}
}
}
}
//update lobby
clientInterface= NetworkManager::getInstance().getClientInterface();

View File

@ -1304,6 +1304,7 @@ void MenuStateCustomGame::update() {
}
soundConnectionCount = currentConnectionCount;
if(enableFactionTexturePreview == true) {
string factionLogo = Game::findFactionLogoFile(&gameSettings, NULL,"preview_screen.*");
if(factionLogo == "") {
factionLogo = Game::findFactionLogoFile(&gameSettings, NULL);
@ -1312,6 +1313,7 @@ void MenuStateCustomGame::update() {
currentFactionLogo = factionLogo;
loadFactionTexture(currentFactionLogo);
}
}
//SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line %d]\n",__FILE__,__FUNCTION__,__LINE__);
}