[MIRROR] canUseTopic now uses TRUE/FALSE instead of defines that just say TRUE [MDB IGNORE] (#16586)

* canUseTopic now uses TRUE/FALSE instead of defines that just say TRUE

* etes

* eyes

Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com>
Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-10-02 16:54:46 +02:00
committed by GitHub
parent bb160ed9a2
commit 1ce77983df
177 changed files with 270 additions and 271 deletions
@@ -226,7 +226,7 @@
if (!t || !sending_and_receiving)
return
if(!U.canUseTopic(computer, BE_CLOSE))
if(!U.canUseTopic(computer, be_close = TRUE))
return
return sanitize(t)
@@ -381,7 +381,7 @@
if(computer.active_program != src)
if(!computer.open_program(usr, src))
return
if(!href_list["close"] && usr.canUseTopic(computer, BE_CLOSE, FALSE, NO_TK))
if(!href_list["close"] && usr.canUseTopic(computer, be_close = TRUE, no_dexterity = FALSE, no_tk = TRUE))
switch(href_list["choice"])
if("Message")
send_message(usr, list(locate(href_list["target"])))