- added 'endofgame' CCMD.

Not really good yet, but it does what's needed, i.e. write out the statistics for the current session.
This commit is contained in:
Christoph Oelckers 2021-07-17 09:42:59 +02:00
parent 0778dfb22a
commit 4ee93de36c

View file

@ -45,6 +45,7 @@
#include "gamecontrol.h"
#include "screenjob.h"
#include "mapinfo.h"
#include "statistics.h"
CVAR(Bool, sv_cheats, true, CVAR_ARCHIVE|CVAR_SERVERINFO)
CVAR(Bool, cl_blockcheats, false, 0)
@ -488,3 +489,9 @@ CUSTOM_CVAR(Float, i_timescale, 1.0f, CVAR_NOINITCALL)
Printf("Time scale must be at least 0.05!\n");
}
}
CCMD(endofgame)
{
STAT_Update(true);
ChangeLevel(nullptr, -1);
}