diff --git a/src/client/refresh/soft/sw_main.c b/src/client/refresh/soft/sw_main.c index ef6c152d..e1fd043b 100644 --- a/src/client/refresh/soft/sw_main.c +++ b/src/client/refresh/soft/sw_main.c @@ -1042,8 +1042,8 @@ RotatedBBox (const vec3_t mins, const vec3_t maxs, vec3_t angles, vec3_t tmins, for (i=0 ; i<3 ; i++) { - tmins[i] = INT_MAX; // Set maximum values for world range - tmaxs[i] = INT_MIN; // Set minimal values for world range + tmins[i] = (vec_t)INT_MAX; // Set maximum values for world range + tmaxs[i] = (vec_t)INT_MIN; // Set minimal values for world range } AngleVectors (angles, forward, right, up); diff --git a/src/client/refresh/soft/sw_model.c b/src/client/refresh/soft/sw_model.c index 917d3e47..da922a01 100644 --- a/src/client/refresh/soft/sw_model.c +++ b/src/client/refresh/soft/sw_model.c @@ -554,8 +554,8 @@ CalcSurfaceExtents (model_t *loadmodel, msurface_t *s) mtexinfo_t *tex; int bmins[2], bmaxs[2]; - mins[0] = mins[1] = INT_MAX; // Set maximum values for world range - maxs[0] = maxs[1] = INT_MIN; // Set minimal values for world range + mins[0] = mins[1] = (float)INT_MAX; // Set maximum values for world range + maxs[0] = maxs[1] = (float)INT_MIN; // Set minimal values for world range tex = s->texinfo; diff --git a/src/client/refresh/soft/sw_poly.c b/src/client/refresh/soft/sw_poly.c index c57f5d19..e5b02d58 100644 --- a/src/client/refresh/soft/sw_poly.c +++ b/src/client/refresh/soft/sw_poly.c @@ -1172,8 +1172,8 @@ R_DrawPoly(int iswater, espan_t *spans) // find the top and bottom vertices, and make sure there's at least one scan to // draw - ymin = INT_MAX; // Set maximum values for world range - ymax = INT_MIN; // Set minimal values for world range + ymin = (float)INT_MAX; // Set maximum values for world range + ymax = (float)INT_MIN; // Set minimal values for world range pverts = r_polydesc.pverts; for (i=0 ; i