Skip to content

Commit

Permalink
Fixes tunnels not showing on the minimap (#5406)
Browse files Browse the repository at this point in the history
# About the pull request

Fixes tunnels not showing on the minimap for xenos and observers.
Also fixes tunnels not having forsaken handling unless they were placed
on top of a resin trap.

It was just a small indentation/positioning error in #5394.

# Explain why it's good for the game

ˈfɪksɪz

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

**Before:**

![dreamseeker_ruDebdbg8W](https://github.com/cmss13-devs/cmss13/assets/57483089/61a2c4a7-1c4e-4341-8525-e313b32f45ea)

**After:**

![dreamseeker_fDSFTLzkHW](https://github.com/cmss13-devs/cmss13/assets/57483089/08f31a8e-5f05-4942-a5fb-904e601d689c)


</details>


# Changelog
:cl:
fix: Fixed tunnels not showing on the minimap.
/:cl:
  • Loading branch information
SabreML committed Jan 9, 2024
1 parent 7c9402f commit 3d8faa3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/modules/cm_aliens/structures/tunnel.dm
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@
if(resin_trap)
qdel(resin_trap)

if(hivenumber == XENO_HIVE_NORMAL)
RegisterSignal(SSdcs, COMSIG_GLOB_GROUNDSIDE_FORSAKEN_HANDLING, PROC_REF(forsaken_handling))
if(hivenumber == XENO_HIVE_NORMAL)
RegisterSignal(SSdcs, COMSIG_GLOB_GROUNDSIDE_FORSAKEN_HANDLING, PROC_REF(forsaken_handling))

SSminimaps.add_marker(src, z, get_minimap_flag_for_faction(hivenumber), "xenotunnel")

/obj/structure/tunnel/proc/forsaken_handling()
SIGNAL_HANDLER
Expand All @@ -62,8 +64,6 @@

UnregisterSignal(SSdcs, COMSIG_GLOB_GROUNDSIDE_FORSAKEN_HANDLING)

SSminimaps.add_marker(src, z, get_minimap_flag_for_faction(hivenumber), "xenotunnel")

/obj/structure/tunnel/Destroy()
if(hive)
hive.tunnels -= src
Expand Down

0 comments on commit 3d8faa3

Please sign in to comment.