From faf15df62ff08e153949d5f1917f9a54ae668104 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 26 Apr 2018 02:53:24 +0300 Subject: [PATCH] Correct max_particles clamping --- engine/common/common.h | 2 +- engine/common/filesystem.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/common/common.h b/engine/common/common.h index 1f00383f..c5a96b93 100644 --- a/engine/common/common.h +++ b/engine/common/common.h @@ -279,7 +279,7 @@ typedef struct gameinfo_s char ambientsound[NUM_AMBIENTS][MAX_QPATH]; // quake ambient sounds - int max_edicts; // min edicts is 600, max edicts is 4096 + int max_edicts; // min edicts is 600, max edicts is 8196 int max_tents; // min temp ents is 300, max is 2048 int max_beams; // min beams is 64, max beams is 512 int max_particles; // min particles is 4096, max particles is 32768 diff --git a/engine/common/filesystem.c b/engine/common/filesystem.c index d2f22e71..4a0c4682 100644 --- a/engine/common/filesystem.c +++ b/engine/common/filesystem.c @@ -1174,7 +1174,7 @@ void FS_ParseGenericGameInfo( gameinfo_t *GameInfo, const char *buf, const qbool else if( !Q_stricmp( token, "max_particles" )) { pfile = COM_ParseFile( pfile, token ); - GameInfo->max_particles = bound( 1024, Q_atoi( token ), 131072 ); + GameInfo->max_particles = bound( 4096, Q_atoi( token ), 32768 ); } else if( !Q_stricmp( token, "gamemode" )) {