0
0
Fork 0
mirror of https://gitlab.com/Oreolek/salet-module.git synced 2024-06-26 03:50:49 +03:00

Proper changing rooms

This commit is contained in:
Alexander Yakovlev 2016-09-16 14:30:04 +07:00
parent dcec69177a
commit 5ff4550c22
3 changed files with 5 additions and 7 deletions

View file

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

@ -58,7 +58,7 @@ class SaletRoom
if @clear and f?
salet.view.clearContent()
else
salet.view.removeTransient()
salet.view.removeTransient(salet.interactive)
if f != @name and salet.rooms[f]?
@visited++

View file

@ -322,13 +322,11 @@ class Salet
@current = newRoomId
# Remove links and transient sections.
@view.removeTransient(@interactive)
# Notify the incoming situation.
# A global callback before entering
if (@enter)
@enter(oldRoomId, newRoomId)
newRoom.entering(this, oldRoomId)
newRoom.entering(oldRoomId)
# additional hook for when the situation text has already been printed
if (@afterEnter)