- properly un-count faded out decals without involving the Destroy method.
This commit is contained in:
parent
97e3e858a1
commit
9dec214c15
3 changed files with 16 additions and 0 deletions
|
|
@ -666,6 +666,8 @@ DBaseDecal *DBaseDecal::CloneSelf (const FDecalTemplate *tpl, double ix, double
|
|||
|
||||
void DImpactDecal::CheckMax ()
|
||||
{
|
||||
static int SpawnCounter;
|
||||
|
||||
if (++Level->ImpactDecalCount >= cl_maxdecals)
|
||||
{
|
||||
DThinker *thinker = Level->FirstThinker (STAT_AUTODECAL);
|
||||
|
|
@ -683,6 +685,17 @@ void DImpactDecal::CheckMax ()
|
|||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
void DImpactDecal::Expired()
|
||||
{
|
||||
Level->ImpactDecalCount--;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
DImpactDecal *DImpactDecal::StaticCreate (FLevelLocals *Level, const char *name, const DVector3 &pos, side_t *wall, F3DFloor * ffloor, PalEntry color)
|
||||
{
|
||||
if (cl_maxdecals > 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue