- fix map preview so it doesn't flicker
This commit is contained in:
parent
609bc528d2
commit
7b8c8195b0
|
@ -2767,6 +2767,7 @@ void MenuStateConnectedGame::update() {
|
|||
}
|
||||
|
||||
// FogOfWar
|
||||
int originalFOWValue = listBoxFogOfWar.getSelectedItemIndex();
|
||||
listBoxFogOfWar.setSelectedItemIndex(0); // default is 0!
|
||||
if(gameSettings->getFogOfWar() == false){
|
||||
listBoxFogOfWar.setSelectedItemIndex(2);
|
||||
|
@ -2776,7 +2777,9 @@ void MenuStateConnectedGame::update() {
|
|||
listBoxFogOfWar.setSelectedItemIndex(1);
|
||||
}
|
||||
}
|
||||
cleanupMapPreviewTexture();
|
||||
if(originalFOWValue != listBoxFogOfWar.getSelectedItemIndex()) {
|
||||
cleanupMapPreviewTexture();
|
||||
}
|
||||
|
||||
// Allow Observers
|
||||
if(gameSettings->getAllowObservers()) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user