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.
This commit is contained in:
parent
597793c93f
commit
214bf73b72
@ -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 >>>
|
||||
|
Loading…
Reference in New Issue
Block a user