mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Repair demos that finish without crashing inexplicably returning to titlescreen after their completion
It's because of cv_cheats' default value in DEVELOP builds...
This commit is contained in:
parent
7ea596daae
commit
05301d0825
2 changed files with 10 additions and 2 deletions
|
|
@ -1859,7 +1859,15 @@ void CV_RevertNetVars(void)
|
||||||
{
|
{
|
||||||
if (cvar->revert.v.string != NULL)
|
if (cvar->revert.v.string != NULL)
|
||||||
{
|
{
|
||||||
Setvalue(cvar, cvar->revert.v.string, false);
|
Setvalue(
|
||||||
|
cvar,
|
||||||
|
cvar->revert.v.string,
|
||||||
|
#ifdef DEVELOP
|
||||||
|
(cvar == &cv_cheats)
|
||||||
|
#else
|
||||||
|
false
|
||||||
|
#endif
|
||||||
|
);
|
||||||
|
|
||||||
if (cvar->revert.allocated)
|
if (cvar->revert.allocated)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4010,7 +4010,7 @@ void G_StopDemo(void)
|
||||||
demobuf.buffer = NULL;
|
demobuf.buffer = NULL;
|
||||||
demo.playback = false;
|
demo.playback = false;
|
||||||
if (demo.title)
|
if (demo.title)
|
||||||
modeattacking = false;
|
modeattacking = ATTACKING_NONE;
|
||||||
demo.title = false;
|
demo.title = false;
|
||||||
demo.timing = false;
|
demo.timing = false;
|
||||||
singletics = false;
|
singletics = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue