mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-03 05:21:27 +00:00
[MIRROR] Cleans up some extra args in Destroy() [MDB IGNORE] (#25907)
* Cleans up some extra args in Destroy() (#80642) ## About The Pull Request After https://github.com/tgstation/tgstation/pull/80628, these shouldn't be needed anymore right? ## Why It's Good For The Game Cleans up some vestigial code ## Changelog EDIT: Not player-facing. * Cleans up some extra args in Destroy() --------- Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com> Co-authored-by: Pinta <68373373+softcerv@users.noreply.github.com>
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
RegisterSignal(user, COMSIG_QDELETING, PROC_REF(destroy_self))
|
||||
RegisterSignal(user.client, COMSIG_QDELETING, PROC_REF(destroy_self))
|
||||
|
||||
/datum/tutorial/Destroy(force, ...)
|
||||
/datum/tutorial/Destroy(force)
|
||||
user.client?.screen -= instruction_screen
|
||||
QDEL_NULL(instruction_screen)
|
||||
|
||||
@@ -163,7 +163,7 @@
|
||||
ASSERT(ispath(tutorial_type, /datum/tutorial))
|
||||
src.tutorial_type = tutorial_type
|
||||
|
||||
/datum/tutorial_manager/Destroy(force, ...)
|
||||
/datum/tutorial_manager/Destroy(force)
|
||||
if (!force)
|
||||
stack_trace("Something is trying to destroy [type], which is a singleton")
|
||||
return QDEL_HINT_LETMELIVE
|
||||
|
||||
Reference in New Issue
Block a user