diff --git a/README.md b/README.md index 7149434..160a43b 100644 --- a/README.md +++ b/README.md @@ -13,11 +13,11 @@ MorriCraft is a high-performance voxel engine built with C++ and Raylib. It feat ## Version History -### v2.1.3 - Stability & Audio Fallback (Latest) -* **Linux Stability Fix**: Resolved a critical PulseAudio crash caused by double audio device initialization. -* **Procedural Hit Sound**: Implemented a synthesized audio fallback for the hit effect to ensure combat feedback always works. +### v2.1.4 - Menu Responsiveness (Latest) +* **Logic Fix**: Corrected state machine nesting that caused menu freezing. +* **Draw Loop Stability**: Ensured global drawing commands are reached in all UI states. -### v2.1.2 - Combat Update +### v2.1.3 - Stability & Audio Fallback ### v2.1.0 - Personalization & Stability * **Integrated Skin Editor**: Personalize your shirt and pants colors directly from the Options menu. diff --git a/build-linux/MorriCraft b/build-linux/MorriCraft index c568338..eb3b324 100755 Binary files a/build-linux/MorriCraft and b/build-linux/MorriCraft differ diff --git a/build-linux/assets/version.txt b/build-linux/assets/version.txt index 535b2f4..b02bebf 100644 --- a/build-linux/assets/version.txt +++ b/build-linux/assets/version.txt @@ -1 +1 @@ -v2.1.3 +v2.1.4 diff --git a/build-windows/MorriCraft.exe b/build-windows/MorriCraft.exe index 9b16251..62dab26 100755 Binary files a/build-windows/MorriCraft.exe and b/build-windows/MorriCraft.exe differ diff --git a/build-windows/assets/version.txt b/build-windows/assets/version.txt index 535b2f4..b02bebf 100644 --- a/build-windows/assets/version.txt +++ b/build-windows/assets/version.txt @@ -1 +1 @@ -v2.1.3 +v2.1.4 diff --git a/src/main.cpp b/src/main.cpp index de16d3e..ed6d2cd 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2048,7 +2048,8 @@ int main(void) Color textColor = isHovered ? (Color){ 255, 255, 160, 255 } : (Color){ 220, 220, 220, 255 }; DrawTextEx(customFont, buttons[i], (Vector2){ (float)textPosX, (float)textPosY }, fontSize, 1.0f, textColor); } - } else if (currentState == LOAD_WORLD_MENU) { + } + } else if (currentState == LOAD_WORLD_MENU) { targetZoom = 1.0f; DrawRectangle(0, 0, currentWidth, currentHeight, (Color){ 0, 0, 0, 180 }); @@ -2475,8 +2476,7 @@ int main(void) activeHotbarSlot = 0; } } - } - + // Draw Gameplay overlay if we entered gameplay if (currentState == GAMEPLAY || currentState == PAUSE_MENU || currentState == CRAFTING_GUI) { // ---- Atmospheric Calculations (Previously global) ---- diff --git a/version.txt b/version.txt index 535b2f4..b02bebf 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -v2.1.3 +v2.1.4