forked from pyrex/chameleonic
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:recollide()
|
||||
self:reanchor()
|
||||
self:reanchor(true)
|
||||
self:spawn_exit()
|
||||
end
|
||||
|
||||
@ -255,6 +255,8 @@ function level:spawn_exit()
|
||||
assert(not spawned,x..","..y)
|
||||
spawned=true
|
||||
player:reinit(x,y)
|
||||
player.orientx=-1
|
||||
if (x<8) player.orientx=1
|
||||
end
|
||||
local win_at=function(x,y)
|
||||
if (self:_mget(x,y)!=4) return
|
||||
|
Loading…
Reference in New Issue
Block a user