readmapsthread

server: load all maps into memory, scan for more maps
in the background
This commit is contained in:
ac-stef
2016-08-26 14:27:51 +02:00
parent c70808e5a4
commit 89f1f69eec
4 changed files with 531 additions and 4 deletions
+25
View File
@@ -307,6 +307,16 @@ void calcentitystats(entitystats_s &es, const persistent_entity *pents, int pent
}
es.pickups = picks.length();
}
#if 0
const char *rateentitystats(entitystats_s &es)
{
static char res[LARGEST_FACTOR + 1];
}
#endif
int cmpintasc(const int *a, const int *b) { return *a - *b; } // leads to ascending sort order
int cmpintdesc(const int *a, const int *b) { return *b - *a; } // leads to descending sort order
@@ -467,6 +477,21 @@ mapstats *loadmapstats(const char *filename, bool getlayout)
}
///////////////////////// debugging ///////////////////////
#if defined(WIN32) && !defined(_DEBUG) && !defined(__GNUC__)