Skip to content

Commit

Permalink
remove a param + easy warn
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilDragonfiend committed Apr 9, 2024
1 parent f839dd0 commit a58f348
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion code/datums/client_image_controller.dm
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ GLOBAL_DATUM_INIT(cimg_controller, /datum/cimg_controller, new)

/// a thing is destroyed or no longer has its own special image
/// Typically, you don't call this proc directly. Use `GLOB.cimg_controller.cut_client_images()`
/datum/cimg_holder/proc/_disappear_from_validated(client_images, need_refresh = FALSE)
/datum/cimg_holder/proc/_disappear_from_validated(client_images)
var/list/applied_clients = list()
for(var/mob/each_mob as anything in valid_mobs)
if(!each_mob.client)
Expand Down
6 changes: 6 additions & 0 deletions code/modules/admin/verbs/debug.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1118,6 +1118,9 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
set desc = "Give client image visibility validation to your current mob."
if(!holder)
return
if(!length(GLOB.cimg_controller.cimg_holders))
client_alert(src, "There's no active client image key in the game", "Client Image Holders")
return

if(!isobserver(src.mob))
alert(src, "Note that you are not using this as non-ghost. This may change your game.", "Warning Reminder")
Expand All @@ -1134,6 +1137,9 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
set desc = "Disqualify your client image visibility from your current mob."
if(!holder)
return
if(!length(GLOB.cimg_controller.cimgkey_by_mob[src.mob]))
client_alert(src, "There's no client image key to you", "Client Image Holders")
return

if(!isobserver(src.mob))
alert(src, "Note that you are not using this as non-ghost. This may change your game.", "Warning Reminder")
Expand Down

0 comments on commit a58f348

Please sign in to comment.