mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Fixes a boutput runtime
* Fixes a boutput runtime * whoops
This commit is contained in:
@@ -107,6 +107,8 @@
|
||||
|
||||
#define isclient(A) (istype(A, /client))
|
||||
|
||||
#define isatom(A) (istype(A, /atom))
|
||||
|
||||
//Macros for antags
|
||||
|
||||
#define isvampire(H) ((H.mind in ticker.mode.vampires) || H.mind.vampire)
|
||||
|
||||
@@ -209,6 +209,7 @@ For the main html chat area
|
||||
//It stands that we PROBABLY don't want to output those to the browser output so just handle them here
|
||||
if (istype(message, /image) || istype(message, /sound) || istype(target, /savefile) || !(ismob(target) || islist(target) || isclient(target) || target == world))
|
||||
target << message
|
||||
if (!isatom(target)) // Really easy to mix these up, and not having to make sure things are mobs makes the code cleaner.
|
||||
CRASH("DEBUG: Boutput called with invalid message")
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user