From 9524d9fe4ba183b65100f22fee2ebc7445257dd9 Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Tue, 2 Mar 2021 18:26:49 +0300 Subject: Fix. --- src/body.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/body.c') diff --git a/src/body.c b/src/body.c index ef020df..fa915bb 100644 --- a/src/body.c +++ b/src/body.c @@ -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; -- cgit v1.2.3