0
0
Fork 0
mirror of https://gitlab.com/Oreolek/salet-module.git synced 2024-05-24 11:58:21 +03:00

Fixed the removeTransient bug.

If a room didn't have its own section (extendSection = true) then
removeTransient(room_name) wouldn't work. Now it works.
This commit is contained in:
Alexander Yakovlev 2017-02-10 18:42:32 +07:00
parent 0fbf82b994
commit 7b1d1cd2b4
2 changed files with 5 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
"name": "salet",
"version": "1.6.15",
"version": "1.6.16",
"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

@ -67,7 +67,10 @@ class SaletRoom
salet.view.clearContent()
if salet.rooms[f]? and not @clear
salet.view.removeTransient(f)
if salet.rooms[f].extendSection == false
salet.view.removeTransient(f)
else
salet.view.removeTransient()
if f != @name and salet.rooms[f]?
@visited++