Fix some tiny level transition bugs

This commit is contained in:
Pyrex 2022-12-17 15:15:56 -08:00
parent 671e4a5051
commit 11e33d0109

View File

@ -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