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:
parent
543618251d
commit
69f1e614e3
1 changed files with 1 additions and 1 deletions
|
@ -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"]
|
||||
|
|
Loading…
Add table
Reference in a new issue