diff options
author | Oxore <oxore@protonmail.com> | 2018-07-09 11:35:20 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2018-07-09 11:35:20 +0300 |
commit | 25ffa63b9d3433dbcd0c13544da3a568fda7a393 (patch) | |
tree | 66a396c19d6d58dc85f2c1510b2fc001da3c5f14 /src/engine.c | |
parent | 7d6b30bd06492aab52fb0ca111e2a9d4e38ac99b (diff) |
Fix scores gaining on hard drop
Diffstat (limited to 'src/engine.c')
-rw-r--r-- | src/engine.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/engine.c b/src/engine.c index 49f3f9c..df3aed1 100644 --- a/src/engine.c +++ b/src/engine.c @@ -227,7 +227,8 @@ static void signal_up() static void signal_harddrop() { - while (field_move_shape_down(&fld, 1)); + while (field_move_shape_down(&fld, 1)) + game.scoreCurrent++; if (field_shape_out_of_bounds(&fld, &fld.shape[1])) transition_game_over(); else |