mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 01:11:44 +00:00
parent
55c7c56709
commit
607d30ef8e
4 changed files with 8 additions and 4 deletions
|
@ -693,7 +693,7 @@ int ParseState::parse(void)
|
||||||
insptr++;
|
insptr++;
|
||||||
ps[g_p].timebeforeexit = *insptr;
|
ps[g_p].timebeforeexit = *insptr;
|
||||||
ps[g_p].customexitsound = -1;
|
ps[g_p].customexitsound = -1;
|
||||||
ChangeLevel(nullptr, -1);
|
ud.eog = true;
|
||||||
insptr++;
|
insptr++;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -1038,10 +1038,13 @@ void startnewgame(MapRecord* map, int skill)
|
||||||
|
|
||||||
bool setnextmap(bool checksecretexit)
|
bool setnextmap(bool checksecretexit)
|
||||||
{
|
{
|
||||||
MapRecord *map;
|
MapRecord* map = nullptr;;
|
||||||
int from_bonus = 0;
|
int from_bonus = 0;
|
||||||
|
|
||||||
if (checksecretexit && ud.from_bonus == 0)
|
if (ud.eog)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
else if (checksecretexit && ud.from_bonus == 0)
|
||||||
{
|
{
|
||||||
if (ud.secretlevel > 0)
|
if (ud.secretlevel > 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -396,6 +396,7 @@ void GameInterface::SerializeGameState(FSerializer& arc)
|
||||||
("respawn_items", ud.respawn_items)
|
("respawn_items", ud.respawn_items)
|
||||||
("respawn_inventory", ud.respawn_inventory)
|
("respawn_inventory", ud.respawn_inventory)
|
||||||
("god", ud.god)
|
("god", ud.god)
|
||||||
|
("eog", ud.eog)
|
||||||
//("auto_run", ud.auto_run)
|
//("auto_run", ud.auto_run)
|
||||||
("monsters_off", ud.monsters_off)
|
("monsters_off", ud.monsters_off)
|
||||||
("last_level", ud.last_level)
|
("last_level", ud.last_level)
|
||||||
|
|
|
@ -52,7 +52,7 @@ struct TileInfo
|
||||||
struct user_defs
|
struct user_defs
|
||||||
{
|
{
|
||||||
int levelclock;
|
int levelclock;
|
||||||
unsigned char god, cashman;
|
unsigned char god, cashman, eog;
|
||||||
unsigned char show_help, scrollmode, clipping;
|
unsigned char show_help, scrollmode, clipping;
|
||||||
char user_name[MAXPLAYERS][32];
|
char user_name[MAXPLAYERS][32];
|
||||||
unsigned char showweapons;
|
unsigned char showweapons;
|
||||||
|
|
Loading…
Reference in a new issue