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

@@ -274,7 +274,7 @@
/obj/machinery/door/proc/requiresID()
return 1
/obj/machinery/door/proc/update_nearby_tiles(need_rebuild)
/obj/machinery/door/update_nearby_tiles(need_rebuild)
if(!air_master)
return 0
@@ -298,7 +298,7 @@
return
/obj/machinery/door/Move(new_loc, new_dir)
update_nearby_tiles()
//update_nearby_tiles()
. = ..()
if(width > 1)
if(dir in list(EAST, WEST))
@@ -311,4 +311,4 @@
update_nearby_tiles()
/obj/machinery/door/morgue
icon = 'icons/obj/doors/doormorgue.dmi'
icon = 'icons/obj/doors/doormorgue.dmi'

View File

@@ -13,18 +13,9 @@
explosion_resistance = 5
air_properties_vary_with_direction = 1
/obj/machinery/door/window/update_nearby_tiles(need_rebuild)
if(!air_master)
return 0
air_master.mark_for_update(get_turf(src))
return 1
/obj/machinery/door/window/New()
..()
update_nearby_tiles()
if (src.req_access && src.req_access.len)
src.icon_state = "[src.icon_state]"
src.base_state = src.icon_state
@@ -33,6 +24,7 @@
/obj/machinery/door/window/Del()
density = 0
playsound(src, "shatter", 70, 1)
update_nearby_tiles()
..()
/obj/machinery/door/window/Bumped(atom/movable/AM as mob|obj)