From 214bf73b72e530d91111c8226d59ff9bc114f7cd Mon Sep 17 00:00:00 2001 From: SergentThomasKelly Date: Sun, 29 Apr 2018 09:12:36 +0200 Subject: [PATCH] minor bug fixed the bug was that instead of showing and writing/saving "1.0" as music level and fx level, it saved "1" so when you tried to turn the volume up, it showed 1 then 1.0 so now it always save and show 1.0. --- savesystem.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/savesystem.py b/savesystem.py index c469a6c..6f0c21e 100644 --- a/savesystem.py +++ b/savesystem.py @@ -41,11 +41,11 @@ def resetSave(): def saveSettings(musicState,fullscreenState,fpsCounterState,musicLevel,fxLevel): if os.path.isfile("settings.txt")==True: settings = open("settings.txt","w") - settings.write(str(musicState)+str(":")+str(fullscreenState)+str(":")+str(fpsCounterState)+str(":")+str(musicLevel)+str(":"+str(fxLevel))) + settings.write(str(musicState)+":"+str(fullscreenState)+":"+str(fpsCounterState)+":"+str(float(musicLevel))+":"+str(float(fxLevel))) settings.close() else: settings = open("settings.txt","w") - settings.write(str(musicState)+str(":")+str(fullscreenState)+str(":")+str(fpsCounterState)+str(":")+str(musicLevel)+str(":")+str(fxLevel)) + settings.write(str(musicState)+":"+str(fullscreenState)+":"+str(fpsCounterState)+":"+str(float(musicLevel))+":"+str(float(fxLevel))) settings.close() # >>> LOAD SETTINGS SAVED PREVIOUSLY >>>