Fixes exploit that allowed players to disable the safety of holodeck consoles without the proper conditions being followed (#62563)

About The Pull Request

As the title says. Players were able to disable the safety of the holodeck without the console being emagged, and without being a robot.
Why It's Good For The Game

I think it would be interesting to add some sort of replacement to this, like players with high gamer skill could disable the safety.
Changelog

cl
fix: Fixes an exploit that allowed players to disable holodeck safety without following the proper conditions
/cl
This commit is contained in:
CocaColaTastesGood
2021-11-04 07:08:41 +02:00
committed by GitHub
parent ef220a86f3
commit 135b6d83b0
+2
View File
@@ -170,6 +170,8 @@ GLOBAL_LIST_INIT(typecache_holodeck_linked_floorcheck_ok, typecacheof(list(/turf
if(program_to_load)
load_program(program_to_load)
if("safety")
if (!(obj_flags & EMAGGED) || !issilicon(usr))
return
if((obj_flags & EMAGGED) && program)
emergency_shutdown()
nerf(obj_flags & EMAGGED,FALSE)