Merge pull request #15813 from Putnam3145/sec-level-woes

fixes security levels
This commit is contained in:
Lin
2022-08-23 00:13:26 +00:00
committed by GitHub
+1 -1
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)