Skip to content

Commit

Permalink
[MIRROR] Fix APC cell removal runtime [MDB IGNORE] (#24427)
Browse files Browse the repository at this point in the history
* Fix APC cell removal runtime (#79077)

## About The Pull Request

Someone implemented `Exited` but didn't remove this code, it's not
necessary and all it does is runtime now.

* Fix APC cell removal runtime

---------

Co-authored-by: MrMelbert <[email protected]>
  • Loading branch information
2 people authored and FFMirrorBot committed Oct 19, 2023
1 parent 776933c commit feaa0bb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions code/modules/power/apc/apc_attack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,6 @@
user.visible_message(span_notice("[user] removes \the [cell] from [src]!"))
balloon_alert(user, "cell removed")
user.put_in_hands(cell)
cell.update_appearance()
cell = null
charging = APC_NOT_CHARGING
update_appearance()
return
if((machine_stat & MAINT) && !opened) //no board; no interface
return
Expand Down
1 change: 1 addition & 0 deletions code/modules/power/apc/apc_main.dm
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@
/obj/machinery/power/apc/Exited(atom/movable/gone, direction)
. = ..()
if(gone == cell)
cell.update_appearance()
cell = null
charging = APC_NOT_CHARGING
update_appearance()
Expand Down

0 comments on commit feaa0bb

Please sign in to comment.