summaryrefslogtreecommitdiff
path: root/src/functions.c
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2017-12-02 10:05:53 +0300
committerOxore <oxore@protonmail.com>2017-12-02 10:05:53 +0300
commit0bdb97ed81ec84bd587c08f1726b86af6d268d08 (patch)
treeb12ee7ebd5e854e1ba644ea03d26023e1eddf7a8 /src/functions.c
parente150d54ca90a8d1cc99ce4d1b8285f5ea971e279 (diff)
Fix bug with over 15 levels
Diffstat (limited to 'src/functions.c')
-rw-r--r--src/functions.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/functions.c b/src/functions.c
index ee0566d..cf01bfb 100644
--- a/src/functions.c
+++ b/src/functions.c
@@ -149,8 +149,9 @@ void putShape()
void checkLevelUp(Game *game)
{
- if (game->scoreCurrent >= game->level * 100)
- game->level++;
+ if (game->level <= 15)
+ if (game->scoreCurrent >= game->level * 100)
+ game->level++;
}
void resetActiveShape()