1
0
Fork 0
mirror of https://gitlab.com/Oreolek/salet.git synced 2024-07-02 06:45:06 +03:00

canView now accepts the third parameter.

This commit is contained in:
Alexander Yakovlev 2016-03-30 09:36:45 +07:00
parent f6fb0fe96f
commit 8c5cd01b9a

View file

@ -153,7 +153,7 @@ class Salet
room = @rooms[roomId]
assert(room, "unknown_situation".l({id:roomId}))
if (room.canView.fcall(this, this, currentRoom))
if (room.canView.fcall(this, this, currentRoom, room))
viewableRoomData.push({
priority: room.priority
id: roomId