diff options
author | ubq323 <ubq323@ubq323.website> | 2023-02-13 13:05:55 +0000 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2023-02-13 13:05:55 +0000 |
commit | 7e0a520f8efd748a13c277b3c39514aee07c74d2 (patch) | |
tree | ba92438a2c2008103bb5af6acb0e01538fa15dce /client/movement.lua | |
parent | 0abc0b9b7928cd72b1c92b3af9f30674397013d1 (diff) |
change blank and ubqorange tiles from false and true to 0 and 9
Diffstat (limited to 'client/movement.lua')
-rw-r--r-- | client/movement.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/movement.lua b/client/movement.lua index 78af5f0..3c9f104 100644 --- a/client/movement.lua +++ b/client/movement.lua @@ -71,7 +71,7 @@ local function collide_with_terrain(old_pos, try_pos, map, tries_remaining) local try_h = try_pos:to_hex():round() for near_h in try_h:iter_neighbours(1) do local tile = map:at(near_h) - if tile then + if tile ~= 0 then local d,gx,gy = hex_sdgf(try_pos, near_h) if d < PLAYER_SIZE then local push_dist = PLAYER_SIZE - d |