mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-01-26 08:16:00 +00:00
Fixes step autosave saving multiple times on same step
This commit is contained in:
@@ -18,7 +18,9 @@ def pbSetPokemonCenter
|
||||
end
|
||||
|
||||
def Kernel.Autosave
|
||||
#showSaveIcon()
|
||||
pbSave(false)
|
||||
#hideSaveIcon()
|
||||
end
|
||||
|
||||
|
||||
@@ -32,6 +34,7 @@ if AUTOSAVE_STEPS_SWITCH
|
||||
if stepsNum > 0 && !$PokemonGlobal.sliding
|
||||
return if $PokemonGlobal.stepcount < 100
|
||||
if $PokemonGlobal.stepcount % stepsNum == 0
|
||||
$PokemonGlobal.stepcount+=1
|
||||
Kernel.tryAutosave()
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user