Merge pull request #11332 from Ghommie/Ghommie-cit603

Replaces EXCEPTION() with stack_trace() and CRASH()
This commit is contained in:
kevinz000
2020-03-06 00:14:13 -07:00
committed by GitHub
18 changed files with 24 additions and 33 deletions
@@ -746,7 +746,7 @@
Mind.add_antag_datum(ninjadatum)
if(Ninja.mind != Mind) //something has gone wrong!
throw EXCEPTION("Ninja created with incorrect mind")
stack_trace("Ninja created with incorrect mind")
message_admins("[ADMIN_LOOKUPFLW(Ninja)] has been made into a ninja by dynamic.")
log_game("[key_name(Ninja)] was spawned as a ninja by dynamic.")
+1 -2
View File
@@ -1,7 +1,6 @@
/proc/playsound(atom/source, soundin, vol as num, vary, extrarange as num, falloff, frequency = null, channel = 0, pressure_affected = TRUE, ignore_walls = TRUE, soundenvwet = -10000, soundenvdry = 0)
if(isarea(source))
throw EXCEPTION("playsound(): source is an area")
return
CRASH("playsound(): source is an area")
var/turf/turf_source = get_turf(source)