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

canExit altering

canExit function now has an argument and executes in the context of exit room.
As it should be.
This commit is contained in:
Alexander Yakovlev 2016-11-10 16:19:49 +07:00
parent 8488ed83c8
commit 99559c9c0a
2 changed files with 2 additions and 2 deletions

View file

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

@ -53,7 +53,7 @@ class SaletRoom
salet.rooms[f].canExit? and
(
salet.rooms[f].canExit == false or
salet.rooms[f].canExit.fcall(this) == false
salet.rooms[f].canExit.fcall(salet.rooms[f], this) == false
) and
force == false
)