com_hunkMegs doesn't have a maximum value anymore

This commit is contained in:
myT 2018-01-15 21:40:29 +01:00
parent f16d368775
commit 511c7ad2cc
2 changed files with 5 additions and 2 deletions

View file

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

View file

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