mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-12-23 17:25:24 +01:00
Correct max_particles clamping
This commit is contained in:
parent
a3c90248a7
commit
faf15df62f
@ -279,7 +279,7 @@ typedef struct gameinfo_s
|
|||||||
|
|
||||||
char ambientsound[NUM_AMBIENTS][MAX_QPATH]; // quake ambient sounds
|
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_tents; // min temp ents is 300, max is 2048
|
||||||
int max_beams; // min beams is 64, max beams is 512
|
int max_beams; // min beams is 64, max beams is 512
|
||||||
int max_particles; // min particles is 4096, max particles is 32768
|
int max_particles; // min particles is 4096, max particles is 32768
|
||||||
|
@ -1174,7 +1174,7 @@ void FS_ParseGenericGameInfo( gameinfo_t *GameInfo, const char *buf, const qbool
|
|||||||
else if( !Q_stricmp( token, "max_particles" ))
|
else if( !Q_stricmp( token, "max_particles" ))
|
||||||
{
|
{
|
||||||
pfile = COM_ParseFile( pfile, token );
|
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" ))
|
else if( !Q_stricmp( token, "gamemode" ))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user