diff --git a/LICENSE b/LICENSE index 1875e2c..2e16d76 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -BSD 3-Clause License +BSD 2-Clause License Copyright (c) 2025-2026, Antoni Piasecki @@ -12,10 +12,6 @@ modification, are permitted provided that the following conditions are met: this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. -3. Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE diff --git a/chip8.c b/chip8.c index 9d232d8..b5e9431 100644 --- a/chip8.c +++ b/chip8.c @@ -345,7 +345,7 @@ void chip8_step(CHIP8 *c) { break; case 0x0A: { uint8_t key_pressed = 0; - while (!key_pressed && WindowShouldClose()) { + while (!key_pressed && !WindowShouldClose()) { for (size_t i = 0; i < 16; i++) { if (IsKeyDown(keyboard_map[i])) { key_pressed = 1;