more detailed entstats

Shows some results of the new map quality checks. tbc
This commit is contained in:
ac-stef
2016-08-26 14:08:56 +02:00
parent 6454a645ae
commit c70808e5a4
2 changed files with 36 additions and 25 deletions
+9
View File
@@ -247,6 +247,15 @@ int calcmapareastats(mapareastats_s &ms, servsqr *_servworld, int _ssize, const
void calcentitystats(entitystats_s &es, const persistent_entity *pents, int pentsize)
{
#ifndef STANDALONE
vector<persistent_entity> _pents;
if(!pents)
{ // use regular ents list
loopv(ents) _pents.add() = ents[i];
pents = &_pents[0];
pentsize = _pents.length();
}
#endif
memset(&es, 0, sizeof(es));
loopi(MAXENTTYPES) es.first[i] = pentsize;
vector<int> picks;