Skip to content

Commit

Permalink
Disable New Game and Quit Game menu options when player is Dead
Browse files Browse the repository at this point in the history
  • Loading branch information
wkdgmr committed Feb 12, 2025
1 parent a2351da commit e1b5939
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/gamemenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "pfile.h"
#include "qol/floatingnumbers.h"
#include "utils/language.h"
#include "player.h"

#ifndef USE_SDL1
#include "controls/touch/renderers.h"
Expand Down Expand Up @@ -98,6 +99,8 @@ void GamemenuUpdateSingle()
void GamemenuUpdateMulti()
{
sgMultiMenu[2].setEnabled(MyPlayerIsDead);
sgMultiMenu[1].setEnabled(!MyPlayerIsDead);
sgMultiMenu[3].setEnabled(!MyPlayerIsDead);
}

void GamemenuPrevious(bool /*bActivate*/)
Expand Down

0 comments on commit e1b5939

Please sign in to comment.