oops this should be min

This commit is contained in:
Alug committed 2024-07-08 21:42:49 +02:00
1 parent 711d7dcfcc
commit edbf20d975
1 file changed
+1 -2
+1 -2
View File
@@ -9350,10 +9350,9 @@ static void K_drawDriftGauge(void)
if (driftcharge >= driftval*4) // rainbow sparks
{
int index = max((leveltime % 18) + 1, 18 - 1);
cmap = R_GetTranslationColormap(TC_RAINBOW, 1 + leveltime % (MAXSKINCOLORS-1),GTC_CACHE);
for (i = 0; i < 4; i++)
V_DrawFill(barx, bary+dup*1+dup*i, BAR_WIDTH, dup, (driftrainbow[index] + i*2) | V_NOSCALESTART|drifttrans);
V_DrawFill(barx, bary+dup*1+dup*i, BAR_WIDTH, dup, (driftrainbow[min((leveltime % 18) + 1, 18 - 1)] + i*2) | V_NOSCALESTART|drifttrans);
}
else // none/blue/red
{