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.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index 38c493c8..a959e087 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -1277,6 +1277,21 @@ void ADef_FireOnEnemy( gentity_t *self, int firespeed )
{
float time = (float)i / 1000.0f;
+ if( i > 250 )
+ {
+ G_Printf( "ADef_FireOnEnemy failed.\n"
+ " enemy location: %v\n"
+ " enemy accleration: %v\n"
+ " enemy jerk: %v\n"
+ " base location: %v\n",
+ self->enemy->s.pos.trBase,
+ self->enemy->acceleration,
+ self->enemy->jerk,
+ self->s.pos.trBase );
+
+ return;
+ }
+
VectorMA( self->enemy->s.pos.trBase, time, self->enemy->s.pos.trDelta,
dirToTarget );
VectorMA( dirToTarget, time * time, halfAcceleration, dirToTarget );