Fix the extremely laggy trees in Aurora Atoll

This commit is contained in:
GenericHeroGuy 2025-02-01 17:45:56 +01:00
parent 1a668e0ab5
commit 886fc8a475

View file

@ -11980,7 +11980,7 @@ static boolean P_SetupSpawnedMapThing(mapthing_t *mthing, mobj_t *mobj, boolean
fixed_t top = mobj->z;
UINT8 i;
UINT8 locnumsegs = abs(mthing->args[0])+2;
UINT8 numleaves = max(3, (abs(mthing->args[1])+1 % 6) + 3);
UINT8 numleaves = max(3, (abs(mthing->args[1]+1) % 6) + 3);
mobj_t *coconut;
// Spawn tree segments