mirror of
https://gitlab.com/Oreolek/salet.git
synced 2024-07-04 07:45:03 +03:00
canView now accepts the third parameter.
This commit is contained in:
parent
f6fb0fe96f
commit
8c5cd01b9a
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue