Fixes bubble/hull shield generators not updating air zones, update_nearby_tiles() cleanup.

This commit is contained in:
mwerezak
2014-11-25 18:10:19 -05:00
committed by mwerezak
parent af579e0e25
commit b84bb4ff23
12 changed files with 41 additions and 67 deletions

View File

@@ -27,16 +27,6 @@
if(!height || air_group) return 0
else return ..()
//Looks like copy/pasted code... I doubt 'need_rebuild' is even used here - Nodrak
/obj/machinery/shield/proc/update_nearby_tiles(need_rebuild)
if(!air_master)
return 0
air_master.mark_for_update(get_turf(src))
return 1
/obj/machinery/shield/attackby(obj/item/weapon/W as obj, mob/user as mob)
if(!istype(W)) return
@@ -357,4 +347,4 @@
src.icon_state = malfunction ? "shieldonbr":"shieldon"
else
src.icon_state = malfunction ? "shieldoffbr":"shieldoff"
return
return