mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-28 14:37:04 +01:00
Fix sluggish AI/camera eye movement (#28327)
* Fix sluggish AI eye movement Fixes #28326 With the AI eye refactor, a `Moved()` callback was implicitly added to each call to `set_loc` on a camera eye. As camera eyes are completely invisible and do not directly interact with the game world, this extra processing isn't necessary. Removing it also removed the noted sluggishness. * Re-adds Moved() call to set_loc, adds parameters The Moved() call removed in the previous commit was not actually completely unnecessary, or newly added. Rather, new parameters were added that were not accounted form namely `momentum_change`. This commit re-adds parent proc call to set_loc for camera eyes, and adds the correct parameter values to Moved() in `/atom/movable/proc/set_loc`.
This commit is contained in:
@@ -217,7 +217,7 @@
|
||||
/atom/movable/proc/set_loc(T, teleported=0)
|
||||
var/old_loc = loc
|
||||
loc = T
|
||||
Moved(old_loc, get_dir(old_loc, loc))
|
||||
Moved(old_loc, get_dir(old_loc, loc), null, null, FALSE)
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user