mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-20 00:24:49 +00:00
Check for Active Compile
This commit is contained in:
parent
de78816458
commit
5f0b7c57f8
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
//-----------Settings------------
|
||||
//Notes score ui width is 592
|
||||
$dtStats::version = 9.3;
|
||||
$dtStats::version = 9.4;
|
||||
//disable stats system
|
||||
$dtStats::Enable = 1;
|
||||
//enable disable map stats
|
||||
|
|
@ -1534,6 +1534,16 @@ if(!isObject(statsGroup)){
|
|||
$dtStats::leftID++;
|
||||
}
|
||||
|
||||
//start compile
|
||||
function compileStats(){
|
||||
if(!$dtStats::building){
|
||||
lStatsCycle(1, 1);
|
||||
}
|
||||
else{
|
||||
error("Stats Already Compiling");
|
||||
}
|
||||
}
|
||||
|
||||
function dtAICON(%client){
|
||||
dtStatsMissionDropReady(Game.getId(), %client);
|
||||
}
|
||||
|
|
@ -11901,7 +11911,7 @@ function loadLeaderboards(%reset){ // loads up leaderboards
|
|||
markNewDay();//called when server starts and when build completes
|
||||
dtCleanUp(0);
|
||||
if(!isEventPending($dtStats::buildEvent))
|
||||
$dtStats::buildEvent = schedule(getTimeDif($dtStats::buildSetTime),0,"lStatsCycle",1,1);
|
||||
$dtStats::buildEvent = schedule(getTimeDif($dtStats::buildSetTime),0,"compileStats");
|
||||
$dtStats::building = 0;
|
||||
if(isFile("serverStats/saveVars.cs"))
|
||||
exec("serverStats/saveVars.cs");
|
||||
|
|
@ -13005,4 +13015,7 @@ function testVarsRandomAll(%max){
|
|||
// Server crash messsage fix
|
||||
//
|
||||
// 9.3
|
||||
// Stat format change for flag cap times, they now start at 0
|
||||
// Stat format change for flag cap times, they now start at 0
|
||||
//
|
||||
// 9.4
|
||||
// Added compileStats function and active compile check
|
||||
Loading…
Reference in a new issue