CGlobalAI::UnitMoveFailed doesn't work!
Posted: 11 Jun 2006, 16:58
I did lots of tests and found that CGlobalAI::UnitMoveFailed function doesn't work properly. It is simply NEVER called, even if unit spams "Can't reach destination" messages!
I started looking into spring code and found that CGlobalAI::UnitMoveFailed is called by CGlobalAIHandler::UnitMoveFailed and functions from CGlobalAIHandler class are called in Sim\Units\Unit.cpp file, but CGlobalAIHandler::UnitMoveFailed is called nowhere!
Hope it will be fixed soon, because it is very hard to detect stuck units without this function.
I started looking into spring code and found that CGlobalAI::UnitMoveFailed is called by CGlobalAIHandler::UnitMoveFailed and functions from CGlobalAIHandler class are called in Sim\Units\Unit.cpp file, but CGlobalAIHandler::UnitMoveFailed is called nowhere!


Hope it will be fixed soon, because it is very hard to detect stuck units without this function.