Fix bug with leaving a stage via the pause menu while not having cleared a stage causing the unlock to still occur. Release Build 8656.
This commit is contained in:
@@ -74,7 +74,7 @@ void Menu::InitializePauseWindow(){
|
||||
Component<MenuLabel>(LEVEL_COMPLETE,"Stage Complete Label")->SetLabel("Stage Summary");
|
||||
Component<MenuComponent>(LEVEL_COMPLETE,"Level Details Outline")->SetLabel("");
|
||||
|
||||
if(game->GetCurrentMapName()=="HUB")Unlock::UnlockCurrentMap(); //Special unlock for the hub area when leaving.
|
||||
if(game->GetCurrentMapName()=="HUB"&&game->PreviousStageCompleted())Unlock::UnlockCurrentMap(); //Special unlock for the hub area when leaving.
|
||||
|
||||
if(Unlock::IsUnlocked("STORY_1_1")){
|
||||
Component<MenuComponent>(LEVEL_COMPLETE,"Next Button")->Enable();
|
||||
|
||||
Reference in New Issue
Block a user