summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndrajith K L2025-11-05 02:22:25 +0530
committerIndrajith K L2025-11-05 02:22:25 +0530
commitcf51a7a7dc147346e439f62a57becaa11a03740f (patch)
tree2e112232d744cfb9efb7836f89d3f4f1266e077d
parent4f34b7aad9abc3aace50140115bd9696441c8231 (diff)
downloadreilua-enhanced-cf51a7a7dc147346e439f62a57becaa11a03740f.tar.gz
reilua-enhanced-cf51a7a7dc147346e439f62a57becaa11a03740f.tar.bz2
reilua-enhanced-cf51a7a7dc147346e439f62a57becaa11a03740f.zip
Prevent splash screens from being closeable
Removed the WindowShouldClose() check from the splash screen loop to prevent users from closing the splash screens prematurely. Previously, users could press ESC or click the X button during splash screens, which would skip to the game but create confusion since it didn't actually exit the application. Now splash screens play through completely for a consistent user experience. Developers can still skip splashes using the --no-logo flag.
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index d4d8fd2..72dbdca 100644
--- a/src/main.c
+++ b/src/main.c
@@ -142,7 +142,7 @@ int main( int argn, const char** argc ) {
splashInit();
bool splashDone = false;
- while ( !splashDone && !WindowShouldClose() ) {
+ while ( !splashDone ) {
float delta = GetFrameTime();
splashDone = splashUpdate( delta );
splashDraw();