Skip to content

Commit 8ffb0fe

Browse files
committed
When converting an Assertion to a Warning or log print, remember to invert the Assertion's condition to get correct behaviour
1 parent 58b4948 commit 8ffb0fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/ai/aicode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,7 @@ objp->orient = objp_orient_copy; //-V587
12401240

12411241
#ifndef NDEBUG
12421242
if (!((objp->type == OBJ_WEAPON) && (Weapon_info[Weapons[objp->instance].weapon_info_index].subtype == WP_MISSILE))) {
1243-
if (!(delta_time < 0.25f && vm_vec_dot(&objp->orient.vec.fvec, &tvec) < 0.1f))
1243+
if (delta_time < 0.25f && vm_vec_dot(&objp->orient.vec.fvec, &tvec) < 0.1f)
12441244
mprintf(("A ship rotated too far. Offending vessel is %s, please investigate.\n", Ships[objp->instance].ship_name));
12451245
}
12461246
#endif

0 commit comments

Comments
 (0)