feat(Windows64): use screen size instead of window size, fix exit game, fix oprhaned saves on exit without saving

This commit is contained in:
2026-08-11 20:27:34 -04:00
parent 0031cae3e3
commit 81d41a6a04
4 changed files with 10 additions and 9 deletions
+3
View File
@@ -753,10 +753,13 @@ bool MinecraftServer::loadLevel(LevelStorageSource *storageSource, const wstring
if( s_bServerHalted || !g_NetworkManager.IsInSession() ) return false;
//str1k3r - if used on windows64 a orphaned save gets left behind if you exit without saving
#ifndef _WINDOWS64
if( levels[0]->isNew || levels[1]->isNew || levels[2]->isNew )
{
levels[0]->saveToDisc(mcprogress, false);
}
#endif
if( s_bServerHalted || !g_NetworkManager.IsInSession() ) return false;