diff options
Diffstat (limited to 'src/koopatlas/core.cpp')
-rw-r--r-- | src/koopatlas/core.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/koopatlas/core.cpp b/src/koopatlas/core.cpp index 9666e53..4cf1768 100644 --- a/src/koopatlas/core.cpp +++ b/src/koopatlas/core.cpp @@ -27,12 +27,14 @@ CREATE_STATE_E(dScKoopatlas_c, SaveWindowClose); CREATE_STATE_E(dScKoopatlas_c, SaveDo); CREATE_STATE_E(dScKoopatlas_c, SaveEndWindow); CREATE_STATE_E(dScKoopatlas_c, SaveEndCloseWait); +#ifdef QUICK_SAVE CREATE_STATE_E(dScKoopatlas_c, QuickSaveOpen); CREATE_STATE_E(dScKoopatlas_c, QuickSaveSelect); CREATE_STATE_E(dScKoopatlas_c, QuickSaveWindowClose); CREATE_STATE_E(dScKoopatlas_c, QuickSaveDo); CREATE_STATE_E(dScKoopatlas_c, QuickSaveEndWindow); CREATE_STATE_E(dScKoopatlas_c, QuickSaveEndCloseWait); +#endif CREATE_STATE_E(dScKoopatlas_c, SaveError); dScKoopatlas_c *dScKoopatlas_c::build() { @@ -561,18 +563,21 @@ void dScKoopatlas_c::executeState_CSMenu() { case 2: // Save or Quick Save MapReport("Save or Quick Save was pressed\n"); +#ifdef QUICK_SAVE if (GetSaveFile()->GetBlock(-1)->bitfield & 2) { +#endif state.setState(&StateID_SaveOpen); yesNoWindow->type = 1; yesNoWindow->visible = true; +#ifdef QUICK_SAVE } else { state.setState(&StateID_QuickSaveOpen); yesNoWindow->type = 15; yesNoWindow->visible = 1; } - +#endif break; case 3: @@ -853,6 +858,7 @@ void dScKoopatlas_c::executeState_SaveEndCloseWait() { } +#ifdef QUICK_SAVE /**********************************************************************/ // STATE_QuickSaveOpen : Waiting for the "Save?" YesNoWindow to open void dScKoopatlas_c::executeState_QuickSaveOpen() { @@ -956,6 +962,7 @@ void dScKoopatlas_c::executeState_QuickSaveEndCloseWait() { } } +#endif void dScKoopatlas_c::executeState_SaveError() { } |