improvement: do not reset scene when teleporting

This commit is contained in:
Kazhnuz 2021-04-03 10:50:59 +02:00
parent ee59bc988b
commit fcafa9aa0f

View file

@ -26,7 +26,11 @@ function RPGWorld:teleport(area, x, y)
self.players[1].actor.x = x * 16
self.players[1].actor.y = y * 16
else
scenes.overworld(area, x, y)
self.area = area
self.playerx = x
self.playery = y
self:reset()
collectgarbage()
end
end