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:
parent
0fbf82b994
commit
7b1d1cd2b4
|
@ -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",
|
||||
|
|
|
@ -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++
|
||||
|
|
Loading…
Reference in a new issue