From ce905daa85e4fe795db3d9d38ab4f72cb28bf85d Mon Sep 17 00:00:00 2001 From: Emil Kabirov Date: Fri, 5 Oct 2018 02:34:44 +0500 Subject: [PATCH] minor fix --- game/main_code.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/main_code.cpp b/game/main_code.cpp index a9e5116..fb33341 100755 --- a/game/main_code.cpp +++ b/game/main_code.cpp @@ -840,7 +840,7 @@ void TMyApplication::InnerOnMouseMove(TMouseState& mouseState) { bool TMyApplication::IsLevelOpened(int levelStar, int levelIndex) { - return levelStar <= currentStar && levelIndex <= currentLevel; + return levelStar < currentStar || levelStar == currentStar && levelIndex <= currentLevel; }