Skip to content

Commit

Permalink
clear auto /DIE options on return to main menu
Browse files Browse the repository at this point in the history
  • Loading branch information
selb committed Oct 24, 2024
1 parent fb7fa11 commit 66e7740
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gameSource/ExistingAccountPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@

#include "minorGems/formats/encodingUtils.h"

#include "yumRebirthComponent.h"

static JenkinsRandomSource randSource;


Expand Down Expand Up @@ -251,6 +253,8 @@ void ExistingAccountPage::makeActive( char inFresh ) {
SettingsManager::getIntSetting( "tutorialEnabled", 0 );

useMainSettings();

yumRebirthComponent::clearSelectedOptions();


if( tutorialEnabled &&
Expand Down
1 change: 1 addition & 0 deletions gameSource/yumRebirthComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class yumRebirthComponent : public PageComponent, public ActionListener {
virtual void actionPerformed(GUIComponent *inTarget);

static Options getSelectedOptions(void) { return currentOptions; }
static void clearSelectedOptions(void) { currentOptions = 0; }

static bool evaluateLife(char race, bool isFemale, bool isDonkeyTown);

Expand Down

0 comments on commit 66e7740

Please sign in to comment.