mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-13 09:05:11 +01:00
Fixes another image harddel in station blueprints (and more) (#80780)
## About The Pull Request  Tin. Just more uncovering of some of these image harddels. `blueprint_data` is a list of images. I also went through the code and looked for any more instances of images being qdeleted that I could find. ## Why It's Good For The Game Hard dels begone ## Changelog 🆑 fix: fixes an /image harddel in station blueprints code: cleaned up some more /image qdels /🆑
This commit is contained in:
@@ -97,7 +97,6 @@
|
||||
return
|
||||
for(var/image/overlay as anything in lock_images)
|
||||
owner.client.images -= overlay
|
||||
qdel(overlay)
|
||||
lock_images.Cut()
|
||||
|
||||
/// Reset the overlays on all targets
|
||||
|
||||
@@ -200,12 +200,12 @@ GLOBAL_LIST_EMPTY(station_turfs)
|
||||
for(var/A in B.contents)
|
||||
qdel(A)
|
||||
return
|
||||
QDEL_LIST(blueprint_data)
|
||||
LAZYCLEARLIST(blueprint_data)
|
||||
flags_1 &= ~INITIALIZED_1
|
||||
requires_activation = FALSE
|
||||
..()
|
||||
|
||||
if (length(vis_contents))
|
||||
if(length(vis_contents))
|
||||
vis_contents.Cut()
|
||||
|
||||
/// WARNING WARNING
|
||||
|
||||
@@ -97,11 +97,13 @@ Proc: RemoveInfectionImages()
|
||||
Des: Removes all infected images from the alien.
|
||||
----------------------------------------*/
|
||||
/mob/living/carbon/alien/proc/RemoveInfectionImages()
|
||||
if (client)
|
||||
for(var/image/I in client.images)
|
||||
if(client)
|
||||
var/list/image/to_remove
|
||||
for(var/image/client_image as anything in client.images)
|
||||
var/searchfor = "infected"
|
||||
if(findtext(I.icon_state, searchfor, 1, length(searchfor) + 1))
|
||||
qdel(I)
|
||||
if(findtext(client_image.icon_state, searchfor, 1, length(searchfor) + 1))
|
||||
to_remove += client_image
|
||||
client.images -= to_remove
|
||||
return
|
||||
|
||||
/mob/living/carbon/alien/canBeHandcuffed()
|
||||
|
||||
@@ -185,7 +185,7 @@
|
||||
if(current_user.client)
|
||||
current_user.client.images -= the_eye.placed_images
|
||||
|
||||
QDEL_LIST(the_eye.placed_images)
|
||||
LAZYCLEARLIST(the_eye.placed_images)
|
||||
|
||||
for(var/image/place_spots as anything in the_eye.placement_images)
|
||||
var/image/newI = image('icons/effects/alphacolors.dmi', the_eye.loc, "blue")
|
||||
@@ -302,8 +302,8 @@
|
||||
/mob/camera/ai_eye/remote/shuttle_docker
|
||||
visible_icon = FALSE
|
||||
use_static = FALSE
|
||||
var/list/placement_images = list()
|
||||
var/list/placed_images = list()
|
||||
var/list/image/placement_images = list()
|
||||
var/list/image/placed_images = list()
|
||||
|
||||
/mob/camera/ai_eye/remote/shuttle_docker/Initialize(mapload, obj/machinery/computer/camera_advanced/origin)
|
||||
src.origin = origin
|
||||
|
||||
Reference in New Issue
Block a user