Removes redundant COMPONENT_INCOMPATIBLE crashes

This commit is contained in:
Jordan Brown
2018-04-25 05:54:41 -05:00
committed by CitadelStationBot
parent 3044f3ad3a
commit f0a259d3e5
17 changed files with 1320 additions and 30 deletions
+1 -2
View File
@@ -7,8 +7,7 @@
/datum/component/decal/Initialize(_icon, _icon_state, _dir, _cleanable=CLEAN_GOD, _color, _layer=TURF_LAYER, _description)
if(!isatom(parent) || !generate_appearance(_icon, _icon_state, _dir, _layer, _color))
. = COMPONENT_INCOMPATIBLE
CRASH("A turf decal was applied incorrectly to [parent.type]: icon:[_icon ? _icon : "none"] icon_state:[_icon_state ? _icon_state : "none"]")
return COMPONENT_INCOMPATIBLE
description = _description
cleanable = _cleanable