From f33823cefea894d633279823059234b82d9ba8ca Mon Sep 17 00:00:00 2001 From: Ray Date: Fri, 20 Feb 2026 15:55:38 +0100 Subject: [PATCH] Update textures_screen_buffer.c --- examples/textures/textures_screen_buffer.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/textures/textures_screen_buffer.c b/examples/textures/textures_screen_buffer.c index 503b8d249..9f40f180b 100644 --- a/examples/textures/textures_screen_buffer.c +++ b/examples/textures/textures_screen_buffer.c @@ -66,11 +66,9 @@ int main(void) // Grow flameRoot for (int x = 2; x < flameWidth; x++) { - unsigned char flame = flameRootBuffer[x]; - if (flame == 255) continue; + int flame = (int)flameRootBuffer[x]; flame += GetRandomValue(0, 2); - if (flame > 255) flame = 255; - flameRootBuffer[x] = flame; + flameRootBuffer[x] = (flameInc > 255)? 255: (unsigned char)flame; } // Transfer flameRoot to indexBuffer