Fix enum scope and finalize v1.9.0 build

This commit is contained in:
Michael Howard 2026-04-23 16:40:29 -05:00
parent 87b0ec902b
commit 05d8a5fb35
2 changed files with 3 additions and 2 deletions

Binary file not shown.

View File

@ -82,6 +82,8 @@ static std::string currentWorldName = "";
static std::string playerName = "Player";
static bool serverMode = false;
enum MenuState { MAIN_MENU, OPTIONS_MENU, CREATE_WORLD_MENU, LOAD_WORLD_MENU, GAMEPLAY, PAUSE_MENU, CRAFTING_GUI, CHECKING_UPDATES, UPDATE_NOTES, UPDATE_FOUND, DOWNLOADING_UPDATE };
// Forward Declarations
bool IsExposedOptimized(int lx, int ly, int lz, Chunk* chunk, Chunk* nxM, Chunk* nxP, Chunk* nzM, Chunk* nzP);
void RebuildChunkRenderList(Chunk* chunk, int cx, int cz);
@ -671,7 +673,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.8.0");
InitWindow(screenWidth, screenHeight, "MorriCraft v1.9.0");
LoadConfig();
SetExitKey(KEY_NULL); // Prevent ESC from closing the window
@ -713,7 +715,6 @@ int main(void)
float playerVelocityY = 0.0f;
bool isGrounded = false;
enum MenuState { MAIN_MENU, OPTIONS_MENU, CREATE_WORLD_MENU, LOAD_WORLD_MENU, GAMEPLAY, PAUSE_MENU, CRAFTING_GUI, CHECKING_UPDATES, UPDATE_NOTES, UPDATE_FOUND, DOWNLOADING_UPDATE };
MenuState currentState = CHECKING_UPDATES;
MenuState optionsReturnState = MAIN_MENU;