Skip to content

Commit

Permalink
"Fixes" Subshuttle Error (#2477)
Browse files Browse the repository at this point in the history
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may
not be viewable. -->
<!-- You can view Contributing.MD for a detailed description of the pull
request process. -->

guard clause :)
<!-- Both 🆑's are required for the changelog to work! You can put
your name to the right of the first 🆑 if you want to overwrite your
GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the
icon ingame) and delete the unneeded ones. Despite some of the tags,
changelogs should generally represent how a player might be affected by
the changes rather than a summary of the PR's contents. -->
  • Loading branch information
Erikafox authored Nov 14, 2023
1 parent 668960a commit 21fe4e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/modules/overmap/ships/controlled_ship_datum.dm
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@
shuttle_area.rename_area("[new_name] [initial(shuttle_area.name)]")
if(!force)
COOLDOWN_START(src, rename_cooldown, 5 MINUTES)
if(shuttle_port.virtual_z() == null)
return TRUE
priority_announce("The [oldname] has been renamed to the [new_name].", "Docking Announcement", sender_override = new_name, zlevel = shuttle_port.virtual_z())
return TRUE

Expand Down

0 comments on commit 21fe4e9

Please sign in to comment.