Skip to content
Snippets Groups Projects
Commit f644d55a authored by dg's avatar dg
Browse files

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@5273 51575b47-30f0-44d4-a5cc-537603b46e54
parent 2c9d6a86
No related branches found
No related tags found
No related merge requests found
......@@ -198,7 +198,7 @@ function _M:setPlayer(actor, bypass)
game.uiset.hotkeys_display.actor = actor
Map:setViewerActor(actor)
if game.target then game.target.source_actor = actor end
if game.level then game.level.map:moveViewSurround(actor.x, actor.y, 8, 8) end
if game.level and actor.x and actor.y then game.level.map:moveViewSurround(actor.x, actor.y, 8, 8) end
actor._move_others = actor.move_others
actor.move_others = true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment