mirror of
https://gitlab.com/Oreolek/salet-module.git
synced 2024-06-26 03:50:49 +03:00
Skip through the repeating rooms on loading
This commit is contained in:
parent
b55cc8fcac
commit
c0c6465a62
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "salet",
|
||||
"version": "1.4.4",
|
||||
"version": "1.4.5",
|
||||
"description": "A general client-side framework for cybertext interactive fiction games.",
|
||||
"keywords": ["ifiction", "interactive fiction", "games", "coffee-script", "text", "menu"],
|
||||
"homepage": "http://salet.oreolek.ru",
|
||||
|
|
|
@ -382,16 +382,20 @@ class Salet
|
|||
|
||||
@rnd = new Random(@progress.seed)
|
||||
|
||||
if @autoload
|
||||
# Start the game now if it's autoloading
|
||||
@init()
|
||||
# Start the game now
|
||||
@init()
|
||||
|
||||
# Run through all the player's history.
|
||||
@interactive = false
|
||||
laststep = undefined
|
||||
for step in @progress.sequence
|
||||
# skip through repeating steps (it's just inviting the bugs)
|
||||
if step.link == laststep.link
|
||||
continue
|
||||
# The action must be done at the recorded time.
|
||||
@time = step.when
|
||||
@processLink(step.link)
|
||||
laststep = step.link
|
||||
@interactive = true
|
||||
|
||||
# Reverse engineer the start time.
|
||||
|
|
Loading…
Reference in a new issue