summaryrefslogtreecommitdiff
path: root/src/game/g_buildable.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_buildable.c')
-rw-r--r--src/game/g_buildable.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index a33a209e..6245e7ac 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -1296,17 +1296,19 @@ void ADef_FireOnEnemy( gentity_t *self, int firespeed )
VectorScale( self->enemy->jerk, 1.0f / 3.0f, thirdJerk );
//O( time ) - worst case O( time ) = 250 iterations
- for( i = 0; ( i * LOCKBLOB_SPEED ) / 1000.0f < distanceToTarget; i++ )
+ for( i = 0; (float)( i * LOCKBLOB_SPEED ) / 1000.0f < distanceToTarget; i++ )
{
float time = (float)i / 1000.0f;
if( i > 250 )
{
- G_Printf( "ADef_FireOnEnemy failed.\n"
+ G_LogPrintf( "ADef_FireOnEnemy failed.\n"
+ " %dth iteration\n"
" enemy location: %v\n"
" enemy accleration: %v\n"
" enemy jerk: %v\n"
" base location: %v\n",
+ i,
self->enemy->s.pos.trBase,
self->enemy->acceleration,
self->enemy->jerk,