Hotfix: Resolve Menu Freeze caused by incorrect brace nesting - v2.1.4

This commit is contained in:
Michael Howard 2026-04-23 19:54:46 -05:00
parent d8f80b9248
commit d91ad97868
7 changed files with 10 additions and 10 deletions

View File

@ -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.

Binary file not shown.

View File

@ -1 +1 @@
v2.1.3
v2.1.4

Binary file not shown.

View File

@ -1 +1 @@
v2.1.3
v2.1.4

View File

@ -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,7 +2476,6 @@ int main(void)
activeHotbarSlot = 0;
}
}
}
// Draw Gameplay overlay if we entered gameplay
if (currentState == GAMEPLAY || currentState == PAUSE_MENU || currentState == CRAFTING_GUI) {

View File

@ -1 +1 @@
v2.1.3
v2.1.4