fixes security levels

This commit is contained in:
Putnam3145
2022-08-22 16:38:54 -07:00
parent f2b8061d4b
commit 656ca9950b

View File

@@ -14,7 +14,7 @@ SUBSYSTEM_DEF(security_level)
*/
/datum/controller/subsystem/security_level/proc/set_level(new_level)
if(!isnum(new_level))
new_level = GLOB.all_security_levels.Find()
new_level = SECLEVEL2NUM(new_level)
//Will not be announced if you try to set to the same level as it already is
if(new_level >= SEC_LEVEL_GREEN && new_level <= SEC_LEVEL_DELTA && new_level != GLOB.security_level)