Predict local pause state to avoid order lag. Fixes #3223.

This commit is contained in:
Paul Chote
2013-05-09 20:12:37 +12:00
parent abcc30f0b7
commit c3c5321e1d
6 changed files with 19 additions and 11 deletions

View File

@@ -32,7 +32,7 @@ namespace OpenRA.Scripting
return;
}
w.Paused = true;
w.SetPauseState(true);
// Mute world sounds
var oldModifier = Sound.SoundVolumeModifier;
@@ -51,7 +51,7 @@ namespace OpenRA.Scripting
Ui.CloseWindow();
Sound.SoundVolumeModifier = oldModifier;
w.Paused = false;
w.SetPauseState(false);
onComplete();
});
}