Z-mimic now correctly checks if the turf above it is mimicing it... rather than checking if a turf is mimicing itself. (#13192)

This commit is contained in:
mikomyazaki
2022-02-16 19:50:02 +01:00
committed by GitHub
parent d4e29ae4ee
commit 22f30cc332
3 changed files with 11 additions and 6 deletions
+3 -5
View File
@@ -63,7 +63,7 @@
A.turret_controls += src
else
control_area = null
updateTurrets()
if (!mapload)
power_change() //Checks power and initial settings
turretModes()
@@ -201,7 +201,6 @@
else if(href_list["command"] == "check_wildlife")
check_wildlife = value
updateTurrets()
update_icon()
SSvueui.check_uis_for_change(src)
else if(href_list["turret_ref"])
var/obj/machinery/porta_turret/aTurret = locate(href_list["turret_ref"]) in (control_area.turrets)
@@ -209,7 +208,6 @@
return
. = aTurret.Topic(href, href_list)
SSvueui.check_uis_for_change(src)
update_icon()
/obj/machinery/turretid/proc/updateTurrets()
var/datum/turret_checks/TC = getState()
@@ -222,6 +220,8 @@
TC.enabled = 0
aTurret.setState(TC)
queue_icon_update()
/obj/machinery/turretid/proc/getState()
var/datum/turret_checks/TC = new
TC.enabled = enabled
@@ -256,12 +256,10 @@
var/obj/machinery/porta_turret/aTurret = control_area.turrets[1]
lethal = aTurret.lethal
updateTurrets()
update_icon()
/obj/machinery/turretid/power_change()
..()
updateTurrets()
update_icon()
/obj/machinery/turretid/update_icon()
..()
+2 -1
View File
@@ -26,7 +26,8 @@
if (!bound_overlay)
return
if (TURF_IS_MIMICING(loc))
var/turf/T = loc
if (TURF_IS_MIMICING(T.above))
if (!bound_overlay.queued)
SSzcopy.queued_overlays += bound_overlay
bound_overlay.queued = TRUE
+6
View File
@@ -0,0 +1,6 @@
author: mikomyazaki
delete-after: True
changes:
- bugfix: "Z-mimic will now update properly when something changes on the bottom visible turf."