fixes an invisibility exploit (#16573)

This commit is contained in:
Kashargul
2024-11-06 22:07:54 +01:00
committed by GitHub
parent 2c11b12814
commit caa6f83e14
2 changed files with 6 additions and 3 deletions
+5 -2
View File
@@ -292,12 +292,15 @@
if(!istype(C, /mob/living/carbon/human))
return 0
. = ..(C)
if(!.)
return
if(ismob(C))
buckle_mob(C)
C.alpha = 0
return ..()
/obj/vehicle/train/rover/engine/unload(var/mob/user, var/direction)
var/mob/living/carbon/human/C = load
+1 -1
View File
@@ -340,7 +340,7 @@
C.pixel_y += load_offset_y
C.layer = layer + 0.1
if(ismob(C))
if(ismob(C) && user)
user_buckle_mob(C, user)
return 1