otland / forgottenserver

A free and open-source MMORPG server emulator written in C++
https://otland.net
GNU General Public License v2.0
1.56k stars 1.04k forks source link

Move A* code to cpp file #4694

Closed ranisalt closed 2 months ago

ranisalt commented 2 months ago

Pull Request Prelude

Changes Proposed

In order to allow the compiler to further optimize A* code, move classes and as much as possible of the code to the cpp file so it can be aggressively inlined and omitted. While at that, add const to values that aren't mutated and modernize code.