Fix some tiny level transition bugs
This commit is contained in:
parent
671e4a5051
commit
11e33d0109
@ -133,7 +133,7 @@ function level:reinit(n)
|
|||||||
|
|
||||||
self:load_dynobjs()
|
self:load_dynobjs()
|
||||||
self:recollide()
|
self:recollide()
|
||||||
self:reanchor()
|
self:reanchor(true)
|
||||||
self:spawn_exit()
|
self:spawn_exit()
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -255,6 +255,8 @@ function level:spawn_exit()
|
|||||||
assert(not spawned,x..","..y)
|
assert(not spawned,x..","..y)
|
||||||
spawned=true
|
spawned=true
|
||||||
player:reinit(x,y)
|
player:reinit(x,y)
|
||||||
|
player.orientx=-1
|
||||||
|
if (x<8) player.orientx=1
|
||||||
end
|
end
|
||||||
local win_at=function(x,y)
|
local win_at=function(x,y)
|
||||||
if (self:_mget(x,y)!=4) return
|
if (self:_mget(x,y)!=4) return
|
||||||
|
Loading…
Reference in New Issue
Block a user