mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 20:20:40 +00:00
- 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:
parent
0778dfb22a
commit
4ee93de36c
1 changed files with 7 additions and 0 deletions
|
@ -45,6 +45,7 @@
|
||||||
#include "gamecontrol.h"
|
#include "gamecontrol.h"
|
||||||
#include "screenjob.h"
|
#include "screenjob.h"
|
||||||
#include "mapinfo.h"
|
#include "mapinfo.h"
|
||||||
|
#include "statistics.h"
|
||||||
|
|
||||||
CVAR(Bool, sv_cheats, true, CVAR_ARCHIVE|CVAR_SERVERINFO)
|
CVAR(Bool, sv_cheats, true, CVAR_ARCHIVE|CVAR_SERVERINFO)
|
||||||
CVAR(Bool, cl_blockcheats, false, 0)
|
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");
|
Printf("Time scale must be at least 0.05!\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CCMD(endofgame)
|
||||||
|
{
|
||||||
|
STAT_Update(true);
|
||||||
|
ChangeLevel(nullptr, -1);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue