mirror of
https://github.com/yquake2/xatrix.git
synced 2025-06-03 10:30:57 +00:00
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:
parent
57c80dccf7
commit
eb0c7a3cb5
3 changed files with 16 additions and 24 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue