From 511c7ad2cccb90f1e324ad48865f5de1b75f2d50 Mon Sep 17 00:00:00 2001 From: myT Date: Mon, 15 Jan 2018 21:40:29 +0100 Subject: [PATCH] com_hunkMegs doesn't have a maximum value anymore --- changelog.txt | 3 +++ code/qcommon/common.cpp | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index 4f0fa32..f4be6e6 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,6 +1,9 @@ DD Mmm 18 - 1.50 +chg: com_hunkMegs doesn't have a maximum value anymore + a value too high would reset it and the engine might fail to load with the default value + fix: jitter due to snapshots piling up with the same server timestamp for loopback and LAN clients fix: the Windows crash handler would incorrectly consider certain exceptions as fatal diff --git a/code/qcommon/common.cpp b/code/qcommon/common.cpp index b36d1a1..bfdef0c 100644 --- a/code/qcommon/common.cpp +++ b/code/qcommon/common.cpp @@ -1389,9 +1389,9 @@ static void Com_InitHunkMemory() // allocate the stack based hunk allocator const cvar_t* cv = Cvar_Get( "com_hunkMegs", XSTRING(DEF_COMHUNKMEGS), CVAR_LATCH | CVAR_ARCHIVE ); if (com_dedicated && com_dedicated->integer) - Cvar_SetRange( "com_hunkMegs", CVART_INTEGER, XSTRING(MIN_COMHUNKMEGS_DED), "256" ); + Cvar_SetRange( "com_hunkMegs", CVART_INTEGER, XSTRING(MIN_COMHUNKMEGS_DED), NULL ); else - Cvar_SetRange( "com_hunkMegs", CVART_INTEGER, XSTRING(MIN_COMHUNKMEGS), "256" ); + Cvar_SetRange( "com_hunkMegs", CVART_INTEGER, XSTRING(MIN_COMHUNKMEGS), NULL ); int nMinAlloc; const char* s;