Skip to content

Commit

Permalink
bwoink
Browse files Browse the repository at this point in the history
  • Loading branch information
TobyThorne committed Apr 2, 2024
1 parent a8a6c0b commit ed834c3
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion code/datums/sound_player.dm
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ GLOBAL_DATUM_INIT(sound_player, /decl/sound_player, new)
var/turf/source_turf = get_turf(source)
var/turf/listener_turf = get_turf(listener)

if(!istype(source_turf) && !istype(listener_turf)) // Oh look somebody's got nullspace'd
if(!istype(source_turf) || !istype(listener_turf)) // Oh look somebody's got nullspace'd
PrivRemoveListener(listener)
return

Expand Down
3 changes: 2 additions & 1 deletion code/modules/mob/living/silicon/ai/ai.dm
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,13 @@ var/list/ai_verbs_default = list(
ai_list -= src
ai_radio = null

QDEL_NULL(eyeobj)
QDEL_NULL(psupply)
QDEL_NULL(aiPDA)
QDEL_NULL(aiMulti)
hack = null

destroy_eyeobj()

. = ..()

/mob/living/silicon/ai/proc/setup_icon()
Expand Down
8 changes: 8 additions & 0 deletions code/modules/mob/living/silicon/silicon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,18 @@ GLOBAL_LIST_EMPTY(all_synthetic_mind_to_data) // data: list of name and type of

/mob/living/silicon/Destroy()
GLOB.silicon_mob_list -= src

QDEL_NULL(silicon_radio)
QDEL_NULL(silicon_camera)

for(var/datum/alarm_handler/AH in SSalarm.all_handlers)
AH.unregister_alarm(src)

if(istype(idcard))
QDEL_NULL(idcard))

queued_alarms.Cut()

return ..()

/mob/living/silicon/mind_initialize()
Expand Down
4 changes: 4 additions & 0 deletions code/modules/mob/mob.dm
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
click_handlers.QdelClear()
QDEL_NULL(click_handlers)

if(eyeobj)
eyeobj.release(src)
QDEL_NULL(eyeobj)

remove_screen_obj_references()
if(client)
for(var/atom/movable/AM in client.screen)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/power/smes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
set_light(0)
return

var/clevel = chargedisplay()
var/clevel = min(chargedisplay(), 5)
if(clevel)
AddOverlays(status_overlays_charge[clevel])
AddOverlays(overlight_overlays_charge[clevel])
Expand Down

0 comments on commit ed834c3

Please sign in to comment.