From 180d58634bd0fd742b60fb2dc907fa836bcc4894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Gia=20Phong?= Date: Mon, 26 Jul 2021 15:27:30 +0700 Subject: Move Highscore out --- src/GameInitDispose.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/GameInitDispose.cpp') diff --git a/src/GameInitDispose.cpp b/src/GameInitDispose.cpp index b791f74..92a9f89 100644 --- a/src/GameInitDispose.cpp +++ b/src/GameInitDispose.cpp @@ -2205,11 +2205,11 @@ int Game::InitGL(void) } // TODO: Read high score - ifstream ipstream2("Data/Highscore"); + ifstream ipstream2("highscore.txt"); if(!ipstream2) { - highscore=0; - beatgame=0; - ofstream opstream("Data/Highscore"); + highscore = 0; + beatgame = 0; + ofstream opstream("highscore.txt"); opstream << highscore; opstream << "\n"; opstream << beatgame; -- cgit v1.2.3