Skip to content

Commit

Permalink
- do not keep impact decal that fails to stick to a wall
Browse files Browse the repository at this point in the history
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
  • Loading branch information
alexey-lysiuk authored and coelckers committed Nov 1, 2020
1 parent 5157420 commit 381d2bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/playsim/a_decals.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 381d2bc

Please sign in to comment.