diff options
author | Fedja Beader <fedja@protonmail.ch> | 2025-03-10 17:56:45 +0000 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2025-03-10 17:56:45 +0000 |
commit | 69121bb79ec2a4440bed686d2c22e73cc0f12497 (patch) | |
tree | b21960df9d3b8fa12e2dbdf98cbcdfbccdf44b87 /src/fs/files.h | |
parent | 436b8580ba7e200ea04707c380f2a69c03e64052 (diff) | |
download | manaplus-69121bb79ec2a4440bed686d2c22e73cc0f12497.tar.gz manaplus-69121bb79ec2a4440bed686d2c22e73cc0f12497.tar.bz2 manaplus-69121bb79ec2a4440bed686d2c22e73cc0f12497.tar.xz manaplus-69121bb79ec2a4440bed686d2c22e73cc0f12497.zip |
Speedup ActorManager::findNearestByName by testing cheap bounding box distance before (potentially) asking pathfinder.
Pathfinder may get called in the validateBeing() call, can't tell yet.
Squashed with:
* Fix linter
This test and the below static_cast looks like dynamic_cast should've
been used.
****
mana/plus!143
Diffstat (limited to 'src/fs/files.h')
0 files changed, 0 insertions, 0 deletions