Split the gibs per frame limit between gibs and debris.

The gibs and debris per frame must be limited to prevent server mem
map overflows. Until now debris and gibs were handled the same, the
debris spawned by rockets and grenates could prevent the actual gibs
of the killed monster from spawning.

Before this change 20 entities were spawned at max. Now up tp 40
enties can be spawned. This needs some testings.
This commit is contained in:
Yamagi Burmeister 2018-10-07 12:13:48 +02:00
parent 57c80dccf7
commit eb0c7a3cb5
3 changed files with 16 additions and 24 deletions

View file

@ -381,8 +381,8 @@ ExitLevel(void)
}
}
debristhisframe = 0;
gibsthisframe = 0;
lastgibframe = 0;
}
/*
@ -397,6 +397,9 @@ G_RunFrame(void)
level.framenum++;
level.time = level.framenum * FRAMETIME;
debristhisframe = 0;
gibsthisframe = 0;
/* choose a client for monsters to target this frame */
AI_SetSightClient();