Skip to content

Commit

Permalink
[MIRROR] Operating computers clears its display procedures upon patie…
Browse files Browse the repository at this point in the history
…nt loss from table (#1964)

* Operating computers clears its display procedures upon patient loss from table (#82616)

## About The Pull Request
- Fixes #82580

We have to update the ui data if the patient leaves the table

## Changelog
:cl:
fix: Operating computers clears its ui display procedures if patient is
moved out of the operating table in any way
/:cl:

* Operating computers clears its display procedures upon patient loss from table

---------

Co-authored-by: SyncIt21 <[email protected]>
  • Loading branch information
2 people authored and StealsThePRs committed Apr 14, 2024
1 parent d4a333c commit e8c8036
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions code/game/machinery/computer/operating_computer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@

data["table"] = table
data["patient"] = list()
data["procedures"] = list()
if(!table.patient)
return data
var/mob/living/carbon/patient = table.patient
Expand Down Expand Up @@ -136,7 +137,6 @@
data["patient"]["fireLoss"] = patient.getFireLoss()
data["patient"]["toxLoss"] = patient.getToxLoss()
data["patient"]["oxyLoss"] = patient.getOxyLoss()
data["procedures"] = list()
if(patient.surgeries.len)
for(var/datum/surgery/procedure in patient.surgeries)
var/datum/surgery_step/surgery_step = procedure.get_surgery_step()
Expand All @@ -159,8 +159,6 @@
))
return data



/obj/machinery/computer/operating/ui_act(action, params)
. = ..()
if(.)
Expand Down

0 comments on commit e8c8036

Please sign in to comment.