- moved some diagnostic CCMDs to g_dumpinfo.cpp.

This commit is contained in:
Christoph Oelckers 2019-02-01 00:14:31 +01:00
commit 18fb7fdd81
8 changed files with 77 additions and 87 deletions

View file

@ -55,6 +55,7 @@ CVAR (Bool, r_rail_smartspiral, 0, CVAR_ARCHIVE);
CVAR (Int, r_rail_spiralsparsity, 1, CVAR_ARCHIVE);
CVAR (Int, r_rail_trailsparsity, 1, CVAR_ARCHIVE);
CVAR (Bool, r_particles, true, 0);
EXTERN_CVAR(Int, r_maxparticles);
FRandom pr_railtrail("RailTrail");
@ -116,26 +117,6 @@ inline particle_t *NewParticle (FLevelLocals *Level)
//
void P_InitParticles (FLevelLocals *);
// [BC] Allow the maximum number of particles to be specified by a cvar (so people
// with lots of nice hardware can have lots of particles!).
CUSTOM_CVAR( Int, r_maxparticles, 4000, CVAR_ARCHIVE )
{
if ( self == 0 )
self = 4000;
else if (self > 65535)
self = 65535;
else if (self < 100)
self = 100;
if ( gamestate != GS_STARTUP )
{
for (auto Level : AllLevels())
{
P_InitParticles(Level);
}
}
}
void P_InitParticles (FLevelLocals *Level)
{
const char *i;