mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 06:53:40 +00:00
- do not keep impact decal that fails to stick to a wall
Such invisible decals were not taken into account when calculating their total number Changing cl_maxdecals CVAR may not work as expected because of limit counter's inconsistent value https://forum.zdoom.org/viewtopic.php?t=70457
This commit is contained in:
parent
515742033e
commit
381d2bcd73
1 changed files with 1 additions and 0 deletions
|
@ -755,6 +755,7 @@ DImpactDecal *DImpactDecal::StaticCreate (FLevelLocals *Level, const FDecalTempl
|
|||
|
||||
if (!decal->StickToWall (wall, pos.X, pos.Y, ffloor).isValid())
|
||||
{
|
||||
decal->Destroy();
|
||||
return NULL;
|
||||
}
|
||||
decal->CheckMax();
|
||||
|
|
Loading…
Reference in a new issue