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!", RAND_MAX, submodel_num, pm->filename, nv);
3614
+
submodel_get_two_random_points_warned = true;
3615
+
}
3616
+
}
3617
+
#endif
3618
+
3619
+
Assert(nv > 0); // Goober5000 - to avoid div-0 error
3620
+
int vn1 = myrand() % nv;
3621
+
int vn2 = myrand() % nv;
3608
3622
3609
3623
*v1 = *Interp_verts[vn1];
3610
3624
*v2 = *Interp_verts[vn2];
@@ -3641,9 +3655,22 @@ 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);
3666
+
submodel_get_two_random_points_warned = true;
3667
+
}
3668
+
}
3669
+
#endif
3670
+
3644
3671
Assert(nv > 0); // Goober5000 - to avoid div-0 error
0 commit comments