Skip to content

Commit

Permalink
Fix LateInitialize not occurring for poddoors for relativewall_neighb…
Browse files Browse the repository at this point in the history
…ours (#5892)

# About the pull request

This PR is a followup to #5821 where I forgot to check if LateInitialize
was occurring since it requires a hint to do so. Previously they would
call the proc after a timer, but it made more sense to do so in
LateInitialize. However, I am not able to find anywhere this even
visually has any effect so I'm not sure its necessary for the doors to
be calling `relativewall_neighbours`.

# Explain why it's good for the game

Fixes dead code.

# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

Put screenshots and videos here with an empty line between the
screenshots and the `<details>` tags.

</details>


# Changelog
:cl: Drathek
fix: Fix pod doors no longer updating adjacent tiles
/:cl:
  • Loading branch information
Drulikar committed Mar 8, 2024
1 parent 35d3089 commit 78fe2df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/game/machinery/doors/poddoor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,10 @@
/obj/structure/machinery/door/airlock,
)

/obj/structure/machinery/door/poddoor/almayer/Initialize()
. = ..()
return INITIALIZE_HINT_LATELOAD

/obj/structure/machinery/door/poddoor/almayer/LateInitialize()
. = ..()
relativewall_neighbours()
Expand Down

0 comments on commit 78fe2df

Please sign in to comment.