Skip to content

Commit

Permalink
Fix up a few bugs with Admin Freeze
Browse files Browse the repository at this point in the history
  • Loading branch information
blinkdog committed Jan 13, 2024
1 parent 4e37afb commit e284ba0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion code/game/objects/effects/overlays.dm
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
name = "adminoverlay"
icon = 'icons/effects/effects.dmi'
icon_state = "admin"
layer = 4.1
layer = ABOVE_ALL_MOB_LAYER

/obj/effect/overlay/vis
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
Expand Down
6 changes: 3 additions & 3 deletions code/modules/admin/verbs/freeze.dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ GLOBAL_LIST_EMPTY(frozen_atom_list) // A list of admin-frozen atoms.

/// Created here as a base proc. Override as needed for any type of object or mob you want able to be frozen.
/atom/movable/proc/admin_Freeze(client/admin)
to_chat(admin, "<span class='warning'>Freeze is not able to be called on this type of object.</span")
to_chat(admin, "<span class='warning'>Freeze is not able to be called on this type of object.</span>")
return

///mob freeze procs
Expand All @@ -31,7 +31,7 @@ GLOBAL_LIST_EMPTY(frozen_atom_list) // A list of admin-frozen atoms.
GLOB.frozen_atom_list += src

var/obj/effect/overlay/adminoverlay/AO = new
if(skip_overlays)
if(!skip_overlays)
overlays += AO

anchored = TRUE
Expand All @@ -42,7 +42,7 @@ GLOBAL_LIST_EMPTY(frozen_atom_list) // A list of admin-frozen atoms.
else
GLOB.frozen_atom_list -= src

if(skip_overlays)
if(!skip_overlays)
overlays -= frozen

anchored = FALSE
Expand Down

0 comments on commit e284ba0

Please sign in to comment.