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 isclient(A) (istype(A, /client))
|
||||||
|
|
||||||
|
#define isatom(A) (istype(A, /atom))
|
||||||
|
|
||||||
//Macros for antags
|
//Macros for antags
|
||||||
|
|
||||||
#define isvampire(H) ((H.mind in ticker.mode.vampires) || H.mind.vampire)
|
#define isvampire(H) ((H.mind in ticker.mode.vampires) || H.mind.vampire)
|
||||||
|
|||||||
@@ -209,7 +209,8 @@ 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
|
//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))
|
if (istype(message, /image) || istype(message, /sound) || istype(target, /savefile) || !(ismob(target) || islist(target) || isclient(target) || target == world))
|
||||||
target << message
|
target << message
|
||||||
CRASH("DEBUG: Boutput called with invalid 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
|
return
|
||||||
|
|
||||||
//Otherwise, we're good to throw it at the user
|
//Otherwise, we're good to throw it at the user
|
||||||
|
|||||||
Reference in New Issue
Block a user