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
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
+
submodel_get_two_random_points_warned = true;
3615
+
}
3616
+
}
3617
+
#endif
3618
+
3619
+
int vn1 = myrand() % nv;
3620
+
int vn2 = myrand() % nv;
3608
3621
3609
3622
*v1 = *Interp_verts[vn1];
3610
3623
*v2 = *Interp_verts[vn2];
@@ -3641,9 +3654,20 @@ void submodel_get_two_random_points_better(int model_num, int submodel_num, vec3
3641
3654
return;
3642
3655
}
3643
3656
3644
-
Assert(nv > 0); // Goober5000 - to avoid div-0 error
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);
0 commit comments