diff options
author | kdx <kikoodx@paranoici.org> | 2023-03-17 19:03:59 +0100 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-03-17 19:03:59 +0100 |
commit | 5a84257033fe83d08b11ec845fbee1fa7bc56ca4 (patch) | |
tree | ce71232ddfad2204f4f3ed0111f0c4e3af448d27 /src/entity.c | |
parent | f106977f6b0fce888306f4af29c847857a2e02be (diff) | |
download | hyperultra-5a84257033fe83d08b11ec845fbee1fa7bc56ca4.tar.gz |
flawless map system
Diffstat (limited to 'src/entity.c')
-rw-r--r-- | src/entity.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/entity.c b/src/entity.c index 94c0a47..fc45e2a 100644 --- a/src/entity.c +++ b/src/entity.c @@ -11,8 +11,8 @@ entity_collide(Entity *this, Game *g, int ox, int oy) const int y0 = this->pos[1] - this->height / 2 + oy; const int x1 = x0 + this->width - 1; const int y1 = y0 + this->height - 1; - return (map_get_px(x0, y0) == '0' || map_get_px(x0, y1) == '0' || - map_get_px(x1, y0) == '0' || map_get_px(x1, y1) == '0'); + return (map_get_px(x0, y0) == 1 || map_get_px(x0, y1) == 1 || + map_get_px(x1, y0) == 1 || map_get_px(x1, y1) == 1); } void |