Skip to content

Commit 38e803c

Browse files
committed
Restores accidentally deleted assertion from aicode
1 parent 2c4c337 commit 38e803c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

code/ai/aicode.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,6 +1239,12 @@ objp->orient = objp_orient_copy; //-V587
12391239
vm_forward_interpolate(&desired_fvec, &curr_orient, &vel_in, delta_time, delta_bank, &objp->orient, &vel_out, &vel_limit, &acc_limit);
12401240
}
12411241

1242+
#ifndef NDEBUG
1243+
if (!((objp->type == OBJ_WEAPON) && (Weapon_info[Weapons[objp->instance].weapon_info_index].subtype == WP_MISSILE))) {
1244+
Assertion(!(delta_time < 0.25f && vm_vec_dot(&objp->orient.vec.fvec, &tvec) < 0.1f), "A ship rotated too far. Offending vessel is %s, please investigate.\n", Ships[objp->instance].ship_name);
1245+
}
1246+
#endif
1247+
12421248
pip->rotvel = vel_out;
12431249
}
12441250

0 commit comments

Comments
 (0)