0
0
Fork 0
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:
Alexander Yakovlev 2016-12-10 22:36:26 +07:00
parent ff465a4003
commit 9585570b37
2 changed files with 4 additions and 4 deletions

View file

@ -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",

View file

@ -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()