Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 into repin
  • Loading branch information
Absolucy committed Jun 7, 2024
2 parents 447b7ff + 0091772 commit 1a53638
Show file tree
Hide file tree
Showing 452 changed files with 22,555 additions and 16,802 deletions.
6 changes: 3 additions & 3 deletions .github/guides/HARDDELETES.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ So then, we want to temporarily remember to clear a reference when it's deleted

This is where I might lose you, but we're gonna use signals

`qdel()`, the proc that sets off this whole deletion business, sends a signal called `COMSIG_PARENT_QDELETING`
`qdel()`, the proc that sets off this whole deletion business, sends a signal called `COMSIG_QDELETING`

We can listen for that signal, and if we hear it clear whatever reference we may have

Expand All @@ -255,10 +255,10 @@ Here's an example
/somemob/proc/set_target(new_target)
if(target)
UnregisterSignal(target, COMSIG_PARENT_QDELETING) //We need to make sure any old signals are cleared
UnregisterSignal(target, COMSIG_QDELETING) //We need to make sure any old signals are cleared
target = new_target
if(target)
RegisterSignal(target, COMSIG_PARENT_QDELETING, PROC_REF(clear_target)) //Call clear_target if target is ever qdel()'d
RegisterSignal(target, COMSIG_QDELETING, PROC_REF(clear_target)) //Call clear_target if target is ever qdel()'d
/somemob/proc/clear_target(datum/source)
SIGNAL_HANDLER
Expand Down
4 changes: 4 additions & 0 deletions SpacemanDMM.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ use_typepath_names = true

[debugger]
engine = "auxtools"

# monkestation edit
[map_renderer.fancy_layers]
"/obj/machinery/duct" = -4
Loading

0 comments on commit 1a53638

Please sign in to comment.