If an integer is less than 1, it can only be 0. This should fix console
spam with developer_extra 1.
https://gitlab.com/xonotic/darkplaces/-/merge_requests/87
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12675
d7cf8633-e32d-0410-b094-
e92efae38249
-
#include "quakedef.h"
#include "meshqueue.h"
// check for bad cvars
if (r_transparent_sortarraysize.integer < 1 || r_transparent_sortarraysize.integer > 32768)
Cvar_SetValueQuick(&r_transparent_sortarraysize, bound(1, r_transparent_sortarraysize.integer, 32768));
- if (r_transparent_sortmindist.integer < 1 || r_transparent_sortmindist.integer >= r_transparent_sortmaxdist.integer)
+ if (r_transparent_sortmindist.integer < 0 || r_transparent_sortmindist.integer >= r_transparent_sortmaxdist.integer)
Cvar_SetValueQuick(&r_transparent_sortmindist, 0);
if (r_transparent_sortmaxdist.integer < r_transparent_sortmindist.integer || r_transparent_sortmaxdist.integer > 32768)
Cvar_SetValueQuick(&r_transparent_sortmaxdist, bound(r_transparent_sortmindist.integer, r_transparent_sortmaxdist.integer, 32768));