From c9c51bb6cc44e718285ca2534170e83175a8ec27 Mon Sep 17 00:00:00 2001 From: Jordi Santonja Blanes Date: Mon, 8 Dec 2025 08:21:55 +0100 Subject: [PATCH] Comparison always true. Fixed --- examples/textures/textures_cellular_automata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/textures/textures_cellular_automata.c b/examples/textures/textures_cellular_automata.c index 4519df429..3b7745070 100644 --- a/examples/textures/textures_cellular_automata.c +++ b/examples/textures/textures_cellular_automata.c @@ -125,7 +125,7 @@ int main(void) if (IsMouseButtonPressed(MOUSE_BUTTON_LEFT) && (mouseInCell >= 0)) { // Rule changed both by selecting a preset or toggling a bit - if ((mouseInCell >= 0) && (mouseInCell < 8)) + if (mouseInCell < 8) rule ^= (1 << mouseInCell); else rule = presetValues[mouseInCell - 8];