Fix sample level

This commit is contained in:
Pyrex 2022-12-17 20:39:58 -08:00
parent 8814edbdd4
commit 5dc8e2c10d

View File

@ -354,7 +354,7 @@ function level:spawn_exit()
if (x<8) player.orientx=1
end
local win_at=function(x,y)
if (self:_mget(x,y)!=4) return
if (self:_mget(x,y)!=18) return
for n in all(neighbors{x=x,y=y}) do
if n.x<0 or n.y<0 or n.x>15 or n.y>15 then
self._wins[_mix(n.x,n.y)]=true