You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a) remove redundant (shadowing) polymodel *pm declaration
b) end Warnings with \n
c) remove no-longer-needed Asserts (they are handled by the Error check above)
Warning(LOCATION, "RAND_MAX is only %d, but submodel %d for model %s has %d vertices! Explosions will not propagate through the entire model!", RAND_MAX, submodel_num, pm->filename, nv);
3613
+
Warning(LOCATION, "RAND_MAX is only %d, but submodel %d for model %s has %d vertices! Explosions will not propagate through the entire model!\n", RAND_MAX, submodel_num, pm->filename, nv);
3614
3614
submodel_get_two_random_points_warned = true;
3615
3615
}
3616
3616
}
3617
3617
#endif
3618
3618
3619
-
Assert(nv > 0); // Goober5000 - to avoid div-0 error
3620
3619
int vn1 = myrand() % nv;
3621
3620
int vn2 = myrand() % nv;
3622
3621
@@ -3661,14 +3660,12 @@ void submodel_get_two_random_points_better(int model_num, int submodel_num, vec3
Warning(LOCATION, "RAND_MAX is only %d, but submodel %d for model %s has %d vertices! Explosions will not propagate through the entire model!", RAND_MAX, submodel_num, pm->filename, nv);
3663
+
Warning(LOCATION, "RAND_MAX is only %d, but submodel %d for model %s has %d vertices! Explosions will not propagate through the entire model!\n", RAND_MAX, submodel_num, pm->filename, nv);
3666
3664
submodel_get_two_random_points_warned = true;
3667
3665
}
3668
3666
}
3669
3667
#endif
3670
3668
3671
-
Assert(nv > 0); // Goober5000 - to avoid div-0 error
0 commit comments