From 29961e91015bf010acbdee7d72a1d7ac3951cd09 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 12 Nov 2006 04:45:01 +0000 Subject: [PATCH] If we autogen from a steps that was saved to disk, then the autogenned steps are logically saved to disk, too: there's no need to save them. --- stepmania/src/Steps.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/Steps.h b/stepmania/src/Steps.h index 9d1f8f6d9c..14456460f8 100644 --- a/stepmania/src/Steps.h +++ b/stepmania/src/Steps.h @@ -42,8 +42,8 @@ public: void SetFilename( RString fn ) { m_sFilename = fn; } RString GetFilename() const { return m_sFilename; } - void SetSavedToDisk( bool b ) { m_bSavedToDisk = b; } - bool GetSavedToDisk() const { return m_bSavedToDisk; } + void SetSavedToDisk( bool b ) { DeAutogen(); m_bSavedToDisk = b; } + bool GetSavedToDisk() const { return Real()->m_bSavedToDisk; } void SetDifficulty( Difficulty dc ) { SetDifficultyAndDescription( dc, GetDescription() ); } void SetDescription( RString sDescription ) { SetDifficultyAndDescription( this->GetDifficulty(), sDescription ); } void SetDifficultyAndDescription( Difficulty dc, RString sDescription );