diff --git a/build-linux/MorriCraft b/build-linux/MorriCraft index 22c423b..b0168f4 100755 Binary files a/build-linux/MorriCraft and b/build-linux/MorriCraft differ diff --git a/build-windows/MorriCraft.exe b/build-windows/MorriCraft.exe index a2ed8a7..5ccc47b 100755 Binary files a/build-windows/MorriCraft.exe and b/build-windows/MorriCraft.exe differ diff --git a/src/main.cpp b/src/main.cpp index 295ddd2..ee14c65 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -676,7 +676,7 @@ int main(void) // By default, windows have minimize, maximize, and close buttons on the top bar. SetConfigFlags(FLAG_WINDOW_RESIZABLE | FLAG_VSYNC_HINT); - InitWindow(screenWidth, screenHeight, "MorriCraft v1.9.0"); + InitWindow(screenWidth, screenHeight, "MorriCraft v1.9.1"); LoadConfig(); SetExitKey(KEY_NULL); // Prevent ESC from closing the window @@ -857,7 +857,9 @@ int main(void) // Update //---------------------------------------------------------------------------------- // Update ONLY active music streams and ensure others are fully stopped - if (currentState == MAIN_MENU || currentState == LOAD_WORLD_MENU || currentState == CREATE_WORLD_MENU) { + if (currentState == MAIN_MENU || currentState == LOAD_WORLD_MENU || currentState == CREATE_WORLD_MENU || + currentState == CHECKING_UPDATES || currentState == UPDATE_FOUND || currentState == UPDATE_NOTES || + currentState == DOWNLOADING_UPDATE) { UpdateMusicStream(titleMusic); if (IsMusicStreamPlaying(gameplayMusic)) StopMusicStream(gameplayMusic); if (IsMusicStreamPlaying(nightMusic)) StopMusicStream(nightMusic); @@ -891,8 +893,7 @@ int main(void) if (crossfade < 0.0f) crossfade = 0.0f; } - SetMusicVolume(titleMusic, titleLoopFade * masterMusicVolume * (1.0f - crossfade)); - + // --- GLOBAL TIME & AUDIO MANAGEMENT --- float cycleLength = 300.0f; if (currentState == GAMEPLAY) gameTime += GetFrameTime(); @@ -1202,8 +1203,9 @@ int main(void) // Simulate check (2 seconds) if (updateTimer > 2.0f) { - // For demo purposes, we'll say an update is available on the first run after 1.8.0 - updateReady = true; + // Update check logic: Only show if remote version > local version + // For now, we are at v1.9.1, so we set to false. + updateReady = false; if (updateReady) currentState = UPDATE_FOUND; else currentState = MAIN_MENU; } @@ -1258,8 +1260,8 @@ int main(void) DrawTexturePro(titleTexture, sourceRec, destRec, origin, 0.0f, WHITE); EndMode2D(); - // Show Version Number (v1.9.0) in Red - DrawTextEx(customFont, "v1.9.0", (Vector2){ (float)currentWidth - 140, (float)currentHeight - 40 }, 22, 1.0f, RED); + // Show Version Number (v1.9.1) in Red + DrawTextEx(customFont, "v1.9.1", (Vector2){ (float)currentWidth - 140, (float)currentHeight - 40 }, 22, 1.0f, RED); // --- PLAYER NAME POPUP (IF MISSING) --- if (playerName == "") {