Browse Source

Correct max_particles clamping

pull/2/head
Alibek Omarov 7 years ago
parent
commit
faf15df62f
  1. 2
      engine/common/common.h
  2. 2
      engine/common/filesystem.c

2
engine/common/common.h

@ -279,7 +279,7 @@ typedef struct gameinfo_s @@ -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

2
engine/common/filesystem.c

@ -1174,7 +1174,7 @@ void FS_ParseGenericGameInfo( gameinfo_t *GameInfo, const char *buf, const qbool @@ -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" ))
{

Loading…
Cancel
Save