Bug fixes and autosaves
* Added autosave toggle * Fixed achievements being granted in replay scope
This commit is contained in:
parent
c536626a0b
commit
dad333ffc8
@ -63,6 +63,7 @@ screen preferences_general():
|
|||||||
textbutton _("Tooltips") action settings.Toggle("tooltip")
|
textbutton _("Tooltips") action settings.Toggle("tooltip")
|
||||||
textbutton _("System Cursor") action Preference("system cursor", "toggle")
|
textbutton _("System Cursor") action Preference("system cursor", "toggle")
|
||||||
textbutton _("Automatic Updates") action settings.Toggle("updates")
|
textbutton _("Automatic Updates") action settings.Toggle("updates")
|
||||||
|
textbutton _("Autosave") action ToggleField(store, "_autosave")
|
||||||
|
|
||||||
default trans = config.intra_transition
|
default trans = config.intra_transition
|
||||||
|
|
||||||
|
@ -83,6 +83,9 @@ init python:
|
|||||||
return self.achievements.get(id)[3]
|
return self.achievements.get(id)[3]
|
||||||
|
|
||||||
def unlock(self, id, silent=False):
|
def unlock(self, id, silent=False):
|
||||||
|
if _in_replay:
|
||||||
|
return
|
||||||
|
|
||||||
if persistent.achievements[id][3] == False:
|
if persistent.achievements[id][3] == False:
|
||||||
self.achievements[id][3] = True
|
self.achievements[id][3] = True
|
||||||
persistent.achievements[id][3] = True
|
persistent.achievements[id][3] = True
|
||||||
|
Loading…
Reference in New Issue
Block a user