Skip to content

Commit

Permalink
fix 2 in area loops
Browse files Browse the repository at this point in the history
  • Loading branch information
Kapu1178 committed Jan 6, 2025
1 parent bdf1546 commit 08892ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions code/modules/power/apc/apc_main.dm
Original file line number Diff line number Diff line change
Expand Up @@ -381,12 +381,12 @@ GLOBAL_REAL_VAR(default_apc_armor) = list(BLUNT = 20, PUNCTURE = 20, SLASH = 0,
if("main_lights")
area.lightswitch = !area.lightswitch
area.power_change()
for(var/obj/machinery/light_switch/light_switch in area)
for(var/obj/machinery/light_switch/light_switch in area.light_switches)
light_switch.update_appearance()
SEND_SIGNAL(light_switch, COMSIG_LIGHT_SWITCH_SET, area.lightswitch)
if("emergency_lighting")
emergency_lights = !emergency_lights
for(var/obj/machinery/light/L in area)
for(var/obj/machinery/light/L in area.lights)
if(!initial(L.no_emergency)) //If there was an override set on creation, keep that override
L.no_emergency = emergency_lights
INVOKE_ASYNC(L, TYPE_PROC_REF(/obj/machinery/light, update), FALSE)
Expand Down
3 changes: 1 addition & 2 deletions code/modules/shuttle/special.dm
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,8 @@
. = ..()

/obj/structure/table/abductor/wabbajack/process()
var/area = orange(4, src)
if(!our_statue)
for(var/obj/machinery/power/emitter/energycannon/magical/M in area)
for(var/obj/machinery/power/emitter/energycannon/magical/M in orange(4, src))
our_statue = M
break

Expand Down

0 comments on commit 08892ad

Please sign in to comment.