diff --git a/src/wall.opa b/src/wall.opa index efb43dc..d140228 100644 --- a/src/wall.opa +++ b/src/wall.opa @@ -15,7 +15,7 @@ if may_teleport then if x < 0 || x >= grid_width then not(List.mem({line=y}, Default.teleports)) - else if y < 0 || y >= grid_width then + else if y < 0 || y >= grid_heigth then not(List.mem({column=x}, Default.teleports)) else false else