View Single Post
Re: Podbot Beta 3.0 Updates? ^^
Old
  (#15)
mhanor
Member
 
Status: Offline
Posts: 16
Join Date: Jun 2011
Default Re: Podbot Beta 3.0 Updates? ^^ - 01-07-2011

Is it normal for vecVisible to be the zero vector at bot_combat.cpp:437 ? An assert here fails pretty often.
Tracking the remaining issues is not as easy as the previous one.

LE:
issue #1: vecVisible is zero at line 437, because it was cleared by the last call of FBoxVisible at line 316.
issue #2: very often, conditions are met that lead to execution of line 276 and 437 for the same BotFindEnemy call. This doesn't look like a good thing.

Both issues seem to happen simultaneously (for the same BotFindEnemy call). Using a temporary Vector for FBoxVisible at line 316 (instead of vecVisible) and line 330, seems to fix the assert at line 437 (vecVisible != g_vecZero). But the 2nd issue remains (I don't yet understand the inner workings of BotFindEnemy).

Last edited by mhanor; 01-07-2011 at 11:33..
  
Reply With Quote