mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
This should allow map progression via nukebutton to work up to the 32 level limit, for all episodes.
git-svn-id: https://svn.eduke32.com/eduke32@422 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
a236be837c
commit
242eb24e3e
2 changed files with 3 additions and 12 deletions
|
@ -7452,18 +7452,9 @@ FOUNDCHEAT:
|
||||||
KB_FlushKeyBoardQueue();
|
KB_FlushKeyBoardQueue();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (volnume == 0)
|
|
||||||
{
|
|
||||||
if (levnume > 5)
|
|
||||||
{
|
|
||||||
ps[myconnectindex].cheat_phase = 0;
|
|
||||||
KB_FlushKeyBoardQueue();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (levnume >= MAXLEVELS)
|
if (levnume >= MAXLEVELS || level_file_names[volnume*MAXLEVELS+levnume] == NULL)
|
||||||
{
|
{
|
||||||
ps[myconnectindex].cheat_phase = 0;
|
ps[myconnectindex].cheat_phase = 0;
|
||||||
KB_FlushKeyBoardQueue();
|
KB_FlushKeyBoardQueue();
|
||||||
|
|
|
@ -1436,7 +1436,7 @@ char checkhitswitch(short snum,long w,char switchtype)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ud.level_number++;
|
ud.level_number++;
|
||||||
if ((ud.volume_number && ud.level_number > 10) || (ud.volume_number == 0 && ud.level_number > 5))
|
if (ud.level_number > MAXLEVELS-1)
|
||||||
ud.level_number = 0;
|
ud.level_number = 0;
|
||||||
ud.m_level_number = ud.level_number;
|
ud.m_level_number = ud.level_number;
|
||||||
}
|
}
|
||||||
|
@ -3244,7 +3244,7 @@ void checksectors(short snum)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ud.level_number++;
|
ud.level_number++;
|
||||||
if ((ud.volume_number && ud.level_number > 10) || (ud.volume_number == 0 && ud.level_number > 5))
|
if (ud.level_number > MAXLEVELS-1)
|
||||||
ud.level_number = 0;
|
ud.level_number = 0;
|
||||||
ud.m_level_number = ud.level_number;
|
ud.m_level_number = ud.level_number;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue