mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-13 07:58:04 +00:00
- SW: Don't allow level change via cheat when dead.
This commit is contained in:
parent
71485fe9d0
commit
844dcc22ae
1 changed files with 4 additions and 0 deletions
|
@ -236,6 +236,7 @@ void WarpCheat(PLAYERp pp, const char *cheat_string)
|
||||||
//DSPRINTF(ds,"ep %d, lev %d",episode_num, level_num);
|
//DSPRINTF(ds,"ep %d, lev %d",episode_num, level_num);
|
||||||
//MONO_PRINT(ds);
|
//MONO_PRINT(ds);
|
||||||
|
|
||||||
|
if (!pp) return;
|
||||||
if (!SW_SHAREWARE)
|
if (!SW_SHAREWARE)
|
||||||
{
|
{
|
||||||
if (level_num > 28 || level_num < 1)
|
if (level_num > 28 || level_num < 1)
|
||||||
|
@ -246,6 +247,9 @@ void WarpCheat(PLAYERp pp, const char *cheat_string)
|
||||||
if (level_num > 4 || level_num < 1)
|
if (level_num > 4 || level_num < 1)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (TEST(pp->Flags, PF_DEAD))
|
||||||
|
return;
|
||||||
|
|
||||||
|
|
||||||
Level = level_num;
|
Level = level_num;
|
||||||
ExitLevel = TRUE;
|
ExitLevel = TRUE;
|
||||||
|
|
Loading…
Reference in a new issue