Production-ready, fixing server bugs

This commit is contained in:
Vladislav Khorev committed 2026-03-12 11:36:47 +03:00
1 parent ca98fea2bd
commit beac06fd45
10 files changed
+110 -108

No files matched your search

-8
View File
@@ -37,7 +37,6 @@ namespace ZL
#ifdef EMSCRIPTEN
const char* CONST_ZIP_FILE = "resources.zip";
#else
//const char* CONST_ZIP_FILE = "C:\\Work\\Projects\\space-game001\\resources.zip";
const char* CONST_ZIP_FILE = "";
#endif
@@ -72,13 +71,6 @@ namespace ZL
}
Game::~Game() {
/*
if (glContext) {
SDL_GL_DeleteContext(glContext);
}
if (window) {
SDL_DestroyWindow(window);
}*/
#ifndef EMSCRIPTEN
// In Emscripten, SDL must stay alive across context loss/restore cycles
// so the window remains valid when the game object is re-created.