Fixes a boutput runtime

* Fixes a boutput runtime

* whoops
This commit is contained in:
PJB3005
2016-04-06 23:54:45 +02:00
committed by sood
parent b9705b97f4
commit ba1bd93560
2 changed files with 4 additions and 1 deletions

View File

@@ -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)

View File

@@ -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