Files
Bubberstation/code/__HELPERS
KyleraceandGitHub 8b4fd0c334 Revert "Refactor some usages of get_step_towards in loops to use get_steps_to instead" and subsequent fix (#86585)
## About The Pull Request
This reverts commit 39e58f8b20 (#86020),
also reverts the "fix" from 8578180f8c7ef8c8745efbea3faa264c4bfc3984
(#86517 but keeping the unit test because sure).

get_steps_to() pathfinds, it cannot be used in a raycasting algorithm in
place of get_step_towards() (which is essentially get_step(us,
get_dir(us,them))). the original pr was making every usage of can_see()
and assorted procs pathfind to the target across the station instead of
checking visibility in a straight line to the target, leading to lemon
reporting can_see() taking up significantly more time than usual.

the fix inserting CanReach() doesnt work at all, CanReach() is for
checking if you can interact with an item in a possibly nested container
in the same or adjacent turf, it has nothing to do with visibility on
turfs.
## Why It's Good For The Game
optimizes the optimization, fixes the fix
2024-09-11 23:42:06 +00:00
..
2024-08-23 21:49:46 +02:00
2024-09-10 12:58:05 -04:00
2024-08-23 21:49:46 +02:00
2024-08-23 21:49:46 +02:00
2024-08-21 17:07:02 +12:00
2024-08-23 21:49:46 +02:00
2024-06-28 15:38:00 -07:00
2024-08-21 17:07:02 +12:00