mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 10:51:42 +00:00
Add a command to crash the game in DEVELOP builds
This commit is contained in:
parent
d8ad8eb5d5
commit
2bd5ee9886
1 changed files with 10 additions and 0 deletions
10
src/d_main.c
10
src/d_main.c
|
|
@ -1181,6 +1181,13 @@ static void Command_assert(void)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef DEVELOP
|
||||||
|
static void Command_crash(void)
|
||||||
|
{
|
||||||
|
I_Error("The game crashed on PURPOSE, because of the 'crash' command. (This is only enabled in DEVELOP builds.)");
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// D_SRB2Main
|
// D_SRB2Main
|
||||||
//
|
//
|
||||||
|
|
@ -1373,6 +1380,9 @@ void D_SRB2Main(void)
|
||||||
COM_Init();
|
COM_Init();
|
||||||
|
|
||||||
COM_AddCommand("assert", Command_assert);
|
COM_AddCommand("assert", Command_assert);
|
||||||
|
#ifdef DEVELOP
|
||||||
|
COM_AddCommand("crash", Command_crash);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef TESTERS
|
#ifndef TESTERS
|
||||||
// add any files specified on the command line with -file wadfile
|
// add any files specified on the command line with -file wadfile
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue