Skip to content

Commit

Permalink
Blade in/out fast on if already on (#609)
Browse files Browse the repository at this point in the history
  • Loading branch information
NoSloppy authored Dec 15, 2023
1 parent fcd7e24 commit e3578f6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions props/prop_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,11 @@ class PropBase : CommandParser, Looper, protected SaberBase {
#ifdef SAVE_PRESET
ResumePreset();
#else
SetPreset(0, false);
if (SaberBase::IsOn()) {
SetPresetFast(0);
} else {
SetPreset(0, false);
}
#endif // SAVE_PRESET
return;

Expand All @@ -668,7 +672,11 @@ class PropBase : CommandParser, Looper, protected SaberBase {

void ResumePreset() {
savestate_.ReadINIFromSaveDir("curstate");
SetPreset(savestate_.preset, false);
if (SaberBase::IsOn()) {
SetPresetFast(savestate_.preset);
} else {
SetPreset(savestate_.preset, false);
}
}

// Blade length from config file.
Expand Down

0 comments on commit e3578f6

Please sign in to comment.