Update textures_screen_buffer.c

This commit is contained in:
Ray
2026-02-20 15:55:38 +01:00
parent 0aacd330d4
commit f33823cefe

View File

@ -66,11 +66,9 @@ int main(void)
// Grow flameRoot // Grow flameRoot
for (int x = 2; x < flameWidth; x++) for (int x = 2; x < flameWidth; x++)
{ {
unsigned char flame = flameRootBuffer[x]; int flame = (int)flameRootBuffer[x];
if (flame == 255) continue;
flame += GetRandomValue(0, 2); flame += GetRandomValue(0, 2);
if (flame > 255) flame = 255; flameRootBuffer[x] = (flameInc > 255)? 255: (unsigned char)flame;
flameRootBuffer[x] = flame;
} }
// Transfer flameRoot to indexBuffer // Transfer flameRoot to indexBuffer