mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-30 23:18:08 +02:00
bf9ac7318a
With old embark cost calculation pathfinder may end up thinking that hero can embark/disembark while have less movement points than base movement cost is. Now hero would be only able to embark / disembark if we have enough movement points to step on that tile. This rule is also valid for situation when hero have Admiral's Hat as in H3 even if hero don't have embark penalty he still use move points for embark and disembark. Problem was found as it's was causing infitite loop in AI. Server of course rejected attempt to embark with less than 100 movement points while pathfinder tell AI that it's can still embark with 93 movement points. |
||
---|---|---|
.. | ||
CGameHandler.cpp | ||
CGameHandler.h | ||
CMakeLists.txt | ||
CQuery.cpp | ||
CQuery.h | ||
CVCMIServer.cpp | ||
CVCMIServer.h | ||
NetPacksServer.cpp | ||
StdInc.cpp | ||
StdInc.h | ||
VCMI_server.cbp | ||
VCMI_server.vcxproj |