Skip to content

Commit

Permalink
Fix for wound overlays. (#5787)
Browse files Browse the repository at this point in the history
# About the pull request

Yet another disastrous consequence of that "research warcrimes" PR. For
whatever reason, it removed a line that actually was doing something
important. If we have been processing the limb (otherwise
`need_process()` should not be called at all) and after going through
all the checks decided to cease processing it (which only happens when
all damage is gone), we do need to update wounds one final time first to
remove all the overlays from wounds/bandages that have healed but have
not been removed by limb's not-every-tick update in regular `process()`.

# Explain why it's good for the game

Fixes #4764.


# Changelog

:cl:
fix: Fully healed limbs should now properly remove the overlays for
their wounds and bandages.
/:cl:
  • Loading branch information
Segrain committed Feb 23, 2024
1 parent 41f68c1 commit b9ae5b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions code/modules/organs/limbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -580,8 +580,9 @@ This function completely restores a damaged organ to perfect condition.
if(brute_dam || burn_dam)
return TRUE
if(knitting_time > 0)
return 1
return 0
return TRUE
update_wounds()
return FALSE

/obj/limb/process()

Expand Down

0 comments on commit b9ae5b4

Please sign in to comment.