diff options
| author | 2019-03-19 19:10:41 -0400 | |
|---|---|---|
| committer | 2019-03-19 19:10:41 -0400 | |
| commit | 4527bc20241068731c62101d0467d416119ec0c4 (patch) | |
| tree | 309fee3f83d54c5d84ba309f7daa681d63aa77ab | |
| parent | a5e22e7398615fff450ef1404f2ab91bf2f50a2f (diff) | |
| download | cetris-4527bc20241068731c62101d0467d416119ec0c4.tar.gz cetris-4527bc20241068731c62101d0467d416119ec0c4.tar.bz2 cetris-4527bc20241068731c62101d0467d416119ec0c4.zip | |
edit formatting
| -rw-r--r-- | src/matrix.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/matrix.c b/src/matrix.c index 9602e3e..5ee971b 100644 --- a/src/matrix.c +++ b/src/matrix.c @@ -229,12 +229,14 @@ void rotate_matrix(struct cetris_game* g, int clockwise) { for (uint8_t i = 0; i < 4; i++) { g->current.pos.x += basic_movements[i].x; g->current.pos.y += basic_movements[i].y; - if (check_new_matrix(g, m) == 1) { + + if (check_new_matrix(g, m) == 1) did_tspin = 0; - } + g->current.pos.x -= basic_movements[i].x; g->current.pos.y -= basic_movements[i].y; } + if (did_tspin) { if (did_kick) g->mini_tspin = 1; else g->tspin = 1; |