Skip to content

Commit

Permalink
running a test: demodularizes mana_pool destroy.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wollywoger committed Nov 20, 2024
1 parent cc7885e commit 612c7a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions code/game/atoms_movable.dm
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@
if (length(vis_contents))
vis_contents.Cut()

QDEL_NULL(mana_pool) // MAJOR NON-MODULE CHANGE

/atom/movable/proc/update_emissive_block()
// This one is incredible.
// `if (x) else { /* code */ }` is surprisingly fast, and it's faster than a switch, which is seemingly not a jump table.
Expand Down
4 changes: 2 additions & 2 deletions maplestation_modules/code/modules/magic/mana/mana.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

var/mana_overloaded = FALSE

/atom/movable/Destroy(force, ...)
/* /atom/movable/Destroy(force, ...)
QDEL_NULL(mana_pool) // why was this after set_mana_pool. it should never ever be
set_mana_pool(null)
return ..()
return ..() */

// creates the mana pool for use.
// mostly called on atom_init.
Expand Down

0 comments on commit 612c7a5

Please sign in to comment.