@@ -223,18 +223,18 @@ GLOBAL_DATUM_INIT(iconCache, /savefile, new("data/iconCache.sav")) //Cache of ic
|
||||
if (istype(message, /image) || istype(message, /sound) || istype(target, /savefile))
|
||||
target << message
|
||||
CRASH("Invalid message! [message]")
|
||||
|
||||
|
||||
if(!istext(message))
|
||||
return
|
||||
|
||||
if(target == world)
|
||||
target = GLOB.clients
|
||||
|
||||
|
||||
var/list/targets
|
||||
if(!islist(target))
|
||||
targets = list(target)
|
||||
else
|
||||
targets = target
|
||||
targets = target
|
||||
if(!targets.len)
|
||||
return
|
||||
var/original_message = message
|
||||
@@ -268,7 +268,7 @@ GLOBAL_DATUM_INIT(iconCache, /savefile, new("data/iconCache.sav")) //Cache of ic
|
||||
/proc/grab_client(target)
|
||||
if(istype(target, /client))
|
||||
return target
|
||||
else if(istype(target, /mob))
|
||||
else if(ismob(target))
|
||||
var/mob/M = target
|
||||
if(M.client)
|
||||
return M.client
|
||||
|
||||
Reference in New Issue
Block a user