Skip to content

Commit 9f014d4

Browse files
Update SaveData.hx
1 parent d65ffe3 commit 9f014d4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/data/SaveData.hx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,14 @@ class SaveData {
8080
var window = lime.app.Application.current.window;
8181
window.onClose.add(save);
8282

83-
open();
84-
8583
if (!FileSystem.exists('save.dat')) {
8684
var window = lime.app.Application.current.window;
87-
if (state.graphics.frameRate == 0) state.graphics.frameRate = window.displayMode.refreshRate;
8885
save();
8986
}
87+
88+
open();
89+
90+
if (state.graphics.frameRate == 0) state.graphics.frameRate = window.displayMode.refreshRate * 4;
9091
}
9192

9293
static function open() {

0 commit comments

Comments
 (0)