Miscellaneous fixes (#2774)

changes:

Fixed various GC failures.
Converted integrated radios (used in PDA cartridges) to Initialize.
Added a missing Destroy to the QM PDA cartridge's integrated radio.
Fixed a runtime when mineturfs with no ore were destroyed by explosions.
Fixed a runtime when explosions attempted to Z-travel.
Minor radio performance improvements.
Converted radio globals to defines.
Changed the Security-I and Medical-I frequencies to use the same colors as their respective departments.
Fixes #2646.
This commit is contained in:
Lohikar
2017-06-21 00:09:55 +03:00
committed by skull132
parent 5294510b35
commit 8445d042dc
10 changed files with 276 additions and 243 deletions
+4 -4
View File
@@ -716,7 +716,6 @@
if(prob(25) && has_resources)
var/list/ore = list()
for(var/metal in resources)
switch(metal)
if("silicates")
ore += /obj/item/weapon/ore/glass
@@ -753,9 +752,10 @@
ore += /obj/item/weapon/ore/glass
else
ore += /obj/item/weapon/ore/glass
var/ore_path = pick(ore)
if(ore)
new ore_path(src)
if (ore.len)
var/ore_path = pick(ore)
if(ore)
new ore_path(src)
if(dug <= 10)
dug += 1