Silicon Deletion Sanity (#7800)

This commit is contained in:
Matt Atlas
2019-12-29 23:01:32 +01:00
committed by Werner
parent ca3c6c5828
commit 2e01b48fd8
4 changed files with 51 additions and 28 deletions
+1 -6
View File
@@ -44,8 +44,7 @@
if(!eyeobj) return
if(!new_eye)
new_eye = src
qdel(eyeobj) // No AI, no Eye
eyeobj = null
QDEL_NULL(eyeobj)
if(client)
client.eye = new_eye
@@ -60,10 +59,6 @@
. = ..()
create_eyeobj()
/mob/living/silicon/ai/Destroy()
destroy_eyeobj()
. = ..()
/atom/proc/move_camera_by_click()
if(istype(usr, /mob/living/silicon/ai))
var/mob/living/silicon/ai/AI = usr
+8 -22
View File
@@ -219,29 +219,15 @@ var/list/ai_verbs_default = list(
eyeobj.possess(src)
/mob/living/silicon/ai/Destroy()
qdel(aiPDA)
qdel(aiMulti)
qdel(aiRadio)
aiPDA = null
aiMulti = null
aiRadio = null
QDEL_NULL(aiPDA)
QDEL_NULL(aiMulti)
QDEL_NULL(aiRadio)
ai_list -= src
qdel(eyeobj)
eyeobj = null
qdel(psupply)
psupply = null
qdel(aiMulti)
aiMulti = null
qdel(aiRadio)
aiRadio = null
qdel(aiCamera)
aiCamera = null
destroy_eyeobj()
QDEL_NULL(psupply)
QDEL_NULL(aiMulti)
QDEL_NULL(aiRadio)
QDEL_NULL(aiCamera)
return ..()
@@ -47,6 +47,7 @@
/mob/living/silicon/Destroy()
silicon_mob_list -= src
QDEL_NULL(idcard)
for(var/datum/alarm_handler/AH in SSalarm.all_handlers)
AH.unregister_alarm(src)
return ..()
+41
View File
@@ -0,0 +1,41 @@
################################
# Example Changelog File
#
# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb.
#
# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.)
# When it is, any changes listed below will disappear.
#
# Valid Prefixes:
# bugfix
# wip (For works in progress)
# tweak
# soundadd
# sounddel
# rscadd (general adding of nice things)
# rscdel (general deleting of nice things)
# imageadd
# imagedel
# maptweak
# spellcheck (typo fixes)
# experiment
# balance
# admin
# backend
# security
# refactor
#################################
# Your name.
author: MattAtlas
# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again.
delete-after: True
# Any changes you've made. See valid prefix list above.
# INDENT WITH TWO SPACES. NOT TABS. SPACES.
# SCREW THIS UP AND IT WON'T WORK.
# Also, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries.
# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog.
changes:
- bugfix: "Fixed some deletion problems with silicons."