Skip to content

Commit

Permalink
fix a few easy to spot hard deletes (#2580)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZephyrTFA authored Dec 10, 2023
1 parent 9c6031d commit be9299a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
4 changes: 4 additions & 0 deletions code/game/machinery/computer/crew.dm
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ GLOBAL_DATUM_INIT(crewmonitor, /datum/crewmonitor, new)
ui = new(user, src, "CrewConsole")
ui.open()

/datum/crewmonitor/ui_close(mob/user)
ui_sources -= user
return ..()

/datum/crewmonitor/proc/show(mob/M, source)
ui_sources[M] = source
ui_interact(M)
Expand Down
8 changes: 7 additions & 1 deletion code/modules/mob/living/silicon/ai/ai.dm
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@

for (var/obj/machinery/camera/C in lit_cameras)
C.set_light(0)
lit_cameras = list()
lit_cameras = list()

return

Expand All @@ -737,9 +737,15 @@
for (var/obj/machinery/camera/C in remove)
lit_cameras -= C //Removed from list before turning off the light so that it doesn't check the AI looking away.
C.Togglelight(0)
UnregisterSignal(C, COMSIG_PARENT_QDELETING, PROC_REF(camera_deleted))
for (var/obj/machinery/camera/C in add)
C.Togglelight(1)
lit_cameras |= C
RegisterSignal(C, COMSIG_PARENT_QDELETING, PROC_REF(camera_deleted))

/mob/living/silicon/ai/proc/camera_deleted(obj/machinery/camera/camera)
SIGNAL_HANDLER
lit_cameras -= camera

/mob/living/silicon/ai/proc/control_integrated_radio()
set name = "Transceiver Settings"
Expand Down
1 change: 1 addition & 0 deletions code/modules/overmap/ships/controlled_ship_datum.dm
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
. = ..()
SSovermap.controlled_ships -= src
helms.Cut()
QDEL_LIST(missions)
LAZYCLEARLIST(owner_candidates)
if(!QDELETED(shuttle_port))
shuttle_port.current_ship = null
Expand Down
2 changes: 1 addition & 1 deletion code/modules/vehicles/scooter.dm
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
/obj/vehicle/ridden/scooter/skateboard/Destroy()
if(sparks)
QDEL_NULL(sparks)
. = ..()
return ..()

/obj/vehicle/ridden/scooter/skateboard/relaymove(mob/living/user, direction)
if (grinding || world.time < next_crash)
Expand Down

0 comments on commit be9299a

Please sign in to comment.