mirror of
https://gitlab.com/Oreolek/salet-module.git
synced 2024-06-16 23:20:54 +03:00
removeTransient before writing anything.
It's important if we go to current room from the current room.
This commit is contained in:
parent
ff465a4003
commit
9585570b37
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "salet",
|
||||
"version": "1.6.8",
|
||||
"version": "1.6.9",
|
||||
"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",
|
||||
|
|
|
@ -68,6 +68,9 @@ class SaletRoom
|
|||
if @clear and f?
|
||||
salet.view.clearContent()
|
||||
|
||||
if salet.rooms[f]? and not @clear
|
||||
salet.view.removeTransient(f)
|
||||
|
||||
if f != @name and salet.rooms[f]?
|
||||
@visited++
|
||||
if salet.rooms[f].exit?
|
||||
|
@ -103,9 +106,6 @@ class SaletRoom
|
|||
if @afterChoices?
|
||||
@afterChoices.fcall(this, f)
|
||||
|
||||
if salet.rooms[f]? and not @clear
|
||||
salet.view.removeTransient(f)
|
||||
|
||||
if salet.autosave and @canSave
|
||||
salet.saveGame()
|
||||
|
||||
|
|
Loading…
Reference in a new issue