Skip to content

Commit

Permalink
fuck
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkSuckerberg committed Jul 21, 2023
1 parent 68f5783 commit 5390988
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions code/modules/overmap/_overmap_datum.dm
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@
/datum/overmap/Destroy(force, ...)
SSovermap.overmap_objects -= src
if(docked_to)
Undock(TRUE)
SSovermap.overmap_container[x][y] -= src
docked_to.post_undocked()
docked_to.contents -= src
if(isnum(x) && isnum(y))
SSovermap.overmap_container[x][y] -= src
token.parent = null
QDEL_NULL(token)
QDEL_LIST(contents)
Expand Down Expand Up @@ -339,6 +341,8 @@
* * dock_requester - The overmap datum trying to undock from this one. Cannot be null.
*/
/datum/overmap/proc/post_undocked(datum/overmap/ship/controlled/dock_requester)
SHOULD_CALL_PARENT(TRUE)
contents -= dock_requester
return

/**
Expand Down
2 changes: 1 addition & 1 deletion code/modules/overmap/ships/ship_datum.dm
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
RegisterSignal(docked_to, COMSIG_OVERMAP_MOVED, .proc/on_docked_to_moved)

/datum/overmap/ship/Destroy()
. = ..()
if(movement_callback_id)
deltimer(movement_callback_id, SSovermap_movement)
return ..()

/datum/overmap/ship/complete_dock(datum/overmap/dock_target, datum/docking_ticket/ticket)
. = ..()
Expand Down

0 comments on commit 5390988

Please sign in to comment.