diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2021-03-02 18:26:49 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2021-03-02 18:26:49 +0300 |
commit | 9524d9fe4ba183b65100f22fee2ebc7445257dd9 (patch) | |
tree | 9f64dc7c8dc9668601921fbff00062c30a98cba5 /src/body.c | |
parent | 9d08026e70c3a474182a7b76c25fd9cf53abdf57 (diff) | |
download | takethis-9524d9fe4ba183b65100f22fee2ebc7445257dd9.tar takethis-9524d9fe4ba183b65100f22fee2ebc7445257dd9.tar.xz takethis-9524d9fe4ba183b65100f22fee2ebc7445257dd9.zip |
Fix.
Diffstat (limited to 'src/body.c')
-rw-r--r-- | src/body.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -33,7 +33,7 @@ void tt_body_move(int d) int eyr = b->yrem; move(b, d); { - SDL_Rect box = {b->x + 5, b->y + 2, 22, 28}; + SDL_Rect box = { b->x + 5, b->y + 2, 22, 28 }; if (!tt_room_collide(r, &box) && !tt_room_out(r, &box)) continue; } b->x = ex; @@ -43,7 +43,7 @@ void tt_body_move(int d) b->xvel *= -1; move(b, d); { - SDL_Rect box = {b->x + 5, b->y + 2, 22, 28}; + SDL_Rect box = { b->x + 5, b->y + 2, 22, 28 }; if (!tt_room_collide(r, &box) && !tt_room_out(r, &box)) continue; } b->x = ex; @@ -54,7 +54,7 @@ void tt_body_move(int d) b->yvel *= -1; move(b, d); { - SDL_Rect box = {b->x + 5, b->y + 2, 22, 28}; + SDL_Rect box = { b->x + 5, b->y + 2, 22, 28 }; if (!tt_room_collide(r, &box) && !tt_room_out(r, &box)) continue; } b->x = ex; |