Merge pull request #6309 from Verkister/513bloops

Some runtime spam fixes. Also fixes fake AO.
This commit is contained in:
Novacat
2019-12-14 08:21:40 -05:00
committed by GitHub
3 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -84,4 +84,4 @@
#define LIGHT_COLOR_INCANDESCENT_FLASHLIGHT "#FFCC66"
//Fake ambient occlusion filter
#define AMBIENT_OCCLUSION filter(type="drop_shadow", x=0, y=-2, size=4, border=4, color="#04080FAA")
#define AMBIENT_OCCLUSION filter(type="drop_shadow", x=0, y=-2, size=4, offset=4, color="#04080FAA")
+4 -2
View File
@@ -61,13 +61,15 @@
//Called when the software is installed in the NIF
/datum/nifsoft/proc/install()
if(!nif)
return
return nif.install(src)
//Called when the software is removed from the NIF
/datum/nifsoft/proc/uninstall()
if(active)
deactivate()
if(nif)
if(active)
deactivate()
. = nif.uninstall(src)
nif = null
if(!QDESTROYING(src))
@@ -55,10 +55,14 @@
nif.human.verbs -= /mob/living/carbon/human/proc/nme
proc/save_settings()
if(!nif)
return
nif.save_data["[list_pos]"] = inside_flavor
return TRUE
proc/load_settings()
if(!nif)
return
var/load = nif.save_data["[list_pos]"]
if(load)
inside_flavor = load