Skip to content

Commit

Permalink
[MIRROR] Fixes COMSIG_ATOM_POST_DIR_CHANGE sending the wrong oldDir a…
Browse files Browse the repository at this point in the history
…rgument [MDB IGNORE] (#2860)

* Fixes COMSIG_ATOM_POST_DIR_CHANGE sending the wrong oldDir argument (#83727)

## About The Pull Request

It didn't cache dir, so it just sent newDir. 
## Why It's Good For The Game

im starting to hate this signal
## Changelog
:cl:
fix: COMSIG_ATOM_POST_DIR_CHANGE should ACTUALLY work now
/:cl:

* Fixes COMSIG_ATOM_POST_DIR_CHANGE sending the wrong oldDir argument

---------

Co-authored-by: nikothedude <[email protected]>
Co-authored-by: NovaBot13 <[email protected]>
  • Loading branch information
3 people authored and StealsThePRs committed Jun 6, 2024
1 parent a3ad1ff commit ffb67db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/game/atom/_atom.dm
Original file line number Diff line number Diff line change
Expand Up @@ -565,8 +565,9 @@
newdir = dir
return
SEND_SIGNAL(src, COMSIG_ATOM_DIR_CHANGE, dir, newdir)
var/oldDir = dir
dir = newdir
SEND_SIGNAL(src, COMSIG_ATOM_POST_DIR_CHANGE, dir, newdir)
SEND_SIGNAL(src, COMSIG_ATOM_POST_DIR_CHANGE, oldDir, newdir)
if(smoothing_flags & SMOOTH_BORDER_OBJECT)
QUEUE_SMOOTH_NEIGHBORS(src)

Expand Down

0 comments on commit ffb67db

Please sign in to comment.