From 0bdb97ed81ec84bd587c08f1726b86af6d268d08 Mon Sep 17 00:00:00 2001 From: Oxore Date: Sat, 2 Dec 2017 10:05:53 +0300 Subject: Fix bug with over 15 levels --- src/functions.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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() -- cgit v1.2.3