Skip to content
Snippets Groups Projects
Commit 7838de61 authored by Alex Ksandra's avatar Alex Ksandra
Browse files

Help out old saves.

parent 503c30c6
No related branches found
No related tags found
No related merge requests found
......@@ -624,6 +624,10 @@ function _M:resizeMapViewport(w, h, x, y)
w = math.floor(w)
h = math.floor(h)
-- convert from older faulty versionsPg
if game.level.map and rawget(game.level.map, "display_x") == Map.display.x and rawget(game.level.map, "display_y") == Map.display_y then
game.level.map.display_x, game.level.map.display_y = nil, nil
end
Map.display_x = x
Map.display_y = y
Map.viewport.width = w
......
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