1
0
Fork 0
mirror of https://gitlab.com/niansa/storybuilder.git synced 2025-03-06 20:48:28 +01:00

Fix checkpoints (stupid cause)

This commit is contained in:
niansa 2020-02-03 18:32:16 +00:00
parent 543618251d
commit 69f1e614e3

View file

@ -60,7 +60,7 @@ function story.reload_stage(name, continuation)
schem.load("", spos, "stage_"..stage)
end
-- Check if player has checkpoint, if yes, use it
local checkpoint = story.get_checkpoint("singleplayer")
local checkpoint = story.get_checkpoint(name)
if checkpoint and continuation then
spos.x_off = checkpoint["x"]
spos.y_off = checkpoint["y"]