v_contentblend works in both QW and uquake now; also, it is a float (not toggle) now.

This commit is contained in:
Anton E. Gavrilov 2000-03-18 03:35:10 +00:00
parent 20c4669f0f
commit 7da71c8673

View file

@ -438,12 +438,11 @@ V_BonusFlash_f ( void )
void
V_SetContentsColor (int contents)
{
#ifdef QUAKEWORLD
if (!v_contentblend->value) {
cl.cshifts[CSHIFT_CONTENTS] = cshift_empty;
return;
}
#endif
switch (contents)
{
case CONTENTS_SOLID:
@ -464,6 +463,9 @@ V_SetContentsColor (int contents)
default:
cl.cshifts[CSHIFT_CONTENTS] = cshift_water;
}
if (v_contentblend->value > 0 && v_contentblend->value < 1)
cl.cshifts[CSHIFT_CONTENTS].percent *= v_contentblend->value;
}
/*