Counter-intuitive FAsserts?

Tholal

Emperor
Joined
May 19, 2009
Messages
1,676
When debugging, I've run into a number of seemingly counter-intuitive FAsserts. For example, in the function AI_anyAttack, there is the following code right after variable declaration.


FAssert(canMove());


Why would you want to throw an assert error if the unit can move? Wouldn't it have to move in order to make an attack? Am I completely misunderstanding what this code is trying to do?
 
Back
Top Bottom