Page 1 of 1

CGlobalAI::UnitMoveFailed doesn't work!

Posted: 11 Jun 2006, 16:58
by Rafal99
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! :!: :shock:
Hope it will be fixed soon, because it is very hard to detect stuck units without this function.

Posted: 11 Jun 2006, 18:37
by jcnossen
Err, it worked when I implemented it, but that was in the old CVS repository. This was never copied in the cvs->svn merges.
Fixed in svn now.

Posted: 11 Jun 2006, 19:47
by Rafal99
Thank you very much for quick reply and fix! :-)

Posted: 11 Jun 2006, 20:14
by submarine
oh now i know why my "making stuck units move again" code didnt work anymore :) th for the quick fix