summaryrefslogtreecommitdiff
path: root/client/movement.lua
diff options
context:
space:
mode:
Diffstat (limited to 'client/movement.lua')
-rw-r--r--client/movement.lua2
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