summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2021-03-06 00:05:51 +0300
committerAleksey Veresov <aleksey@veresov.pro>2021-03-06 00:05:51 +0300
commit1ece5382ebe3c268c65e8fb5606ae846bc288edc (patch)
tree1d755616837a6c8f21a9d11d70d909ba139d2e32
parentd4f3fdaf9c5a852a4426c9501e72ed1db334f0c8 (diff)
downloadtakethis-1ece5382ebe3c268c65e8fb5606ae846bc288edc.tar
takethis-1ece5382ebe3c268c65e8fb5606ae846bc288edc.tar.xz
takethis-1ece5382ebe3c268c65e8fb5606ae846bc288edc.zip
Fix.
-rw-r--r--src/body.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/body.c b/src/body.c
index 60e3cb9..69913b7 100644
--- a/src/body.c
+++ b/src/body.c
@@ -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, 24, 24 };
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, 24, 24 };
if (!tt_room_collide(r, &box) && !tt_room_out(r, &box)) continue;
}
b->x = ex;