1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-30 23:18:08 +02:00
vcmi/server
ArseniyShestakov bf9ac7318a CPathfinder: change cost calculation sequence for embark / disembark
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.
2015-12-15 20:08:52 +03:00
..
CGameHandler.cpp CPathfinder: change cost calculation sequence for embark / disembark 2015-12-15 20:08:52 +03:00
CGameHandler.h removed few more includes from headers 2015-12-02 22:10:46 +02:00
CMakeLists.txt Include ZLib headers for launcher and server 2014-10-12 16:33:38 +03:00
CQuery.cpp Removed all #include's of CMap.h from headers. 2015-12-02 21:05:10 +02:00
CQuery.h Add "override" to virtual overriden methods 2015-10-13 21:05:36 +03:00
CVCMIServer.cpp Start spell-relatet files reorganisation 2015-02-26 08:39:48 +03:00
CVCMIServer.h c++03 -> c++11 switch: 2013-06-26 11:18:27 +00:00
NetPacksServer.cpp Fix issue 1877. Allow to buy heroes in ally towns 2015-10-15 04:00:21 +03:00
StdInc.cpp
StdInc.h Cleanup: 2014-06-05 20:26:50 +03:00
VCMI_server.cbp Changed windows minimum version back to winxp due to mingw bug 2015-08-20 04:22:54 +03:00
VCMI_server.vcxproj Migrating to MSVS 2013, which allows to delete inttypes.h file. 2014-08-31 19:08:39 +02:00