From 949577d3be6dba4b6c238d992475ea162c9c04e5 Mon Sep 17 00:00:00 2001 From: serxoz Date: Wed, 1 Jun 2022 23:37:51 +0200 Subject: [PATCH] =?UTF-8?q?comezo=20colisi=C3=B3s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entidades/ovella.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entidades/ovella.lua b/entidades/ovella.lua index 4de89a7..b4993ad 100644 --- a/entidades/ovella.lua +++ b/entidades/ovella.lua @@ -55,7 +55,7 @@ function Ovella:update(pastor, cercado) -- futuraOvella = Ovella:new(self.id, self.x-dX, self.y-dY) -- comprobar colisios con cada baldosa do cercado - colision = false + local colision = false for y = 1,cercado.filas do for x = 1,cercado.columnas do if cercado.tiles[y][x] ~= 'x' then