mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 14:51:46 +00:00
- Fixed: Skill level confirmation only worked with Doom. Also fixed parsing
of MustConfirm: It looked for TK_String when it should have used TK_StringConst. - Fixed: When travelling to a new non-hub map, any items being carried with amounts of 0 would be upped to 1. SVN r589 (trunk)
This commit is contained in:
parent
a849564d62
commit
1225071f78
8 changed files with 13 additions and 8 deletions
|
@ -1,4 +1,8 @@
|
|||
December 8, 2007
|
||||
- Fixed: Skill level confirmation only worked with Doom. Also fixed parsing
|
||||
of MustConfirm: It looked for TK_String when it should have used TK_StringConst.
|
||||
- Fixed: When travelling to a new non-hub map, any items being carried with
|
||||
amounts of 0 would be upped to 1.
|
||||
- Fixed: When the game starts with the net pane open, the abort button
|
||||
receives the input focus. When the pane is closed, the focus doesn't
|
||||
return to any window, so even though the window is still active, it no
|
||||
|
|
|
@ -1108,7 +1108,9 @@ void G_PlayerFinishLevel (int player, EFinishLevelType mode, bool resetinventory
|
|||
{ // Reduce all owned (visible) inventory to 1 item each
|
||||
for (item = p->mo->Inventory; item != NULL; item = item->Inventory)
|
||||
{
|
||||
if (item->ItemFlags & IF_INVBAR)
|
||||
// There may be depletable items with an amount of 0.
|
||||
// Those need to stay at 0; the rest get dropped to 1.
|
||||
if (item->ItemFlags & IF_INVBAR && item->Amount > 1)
|
||||
{
|
||||
item->Amount = 1;
|
||||
}
|
||||
|
|
|
@ -3144,12 +3144,10 @@ static void ParseSkill ()
|
|||
else if (SC_Compare("MustConfirm"))
|
||||
{
|
||||
skill.MustConfirm = true;
|
||||
/*
|
||||
if (SC_CheckToken(TK_String))
|
||||
if (SC_CheckToken(TK_StringConst))
|
||||
{
|
||||
skill.MustConfirmText = sc_String;
|
||||
}
|
||||
*/
|
||||
}
|
||||
else if (SC_Compare("Key"))
|
||||
{
|
||||
|
|
|
@ -1739,7 +1739,7 @@ void M_VerifyNightmare (int ch)
|
|||
|
||||
void M_ChooseSkill (int choice)
|
||||
{
|
||||
if (gameinfo.gametype == GAME_Doom && AllSkills[choice].MustConfirm)
|
||||
if (AllSkills[choice].MustConfirm)
|
||||
{
|
||||
const char *msg = AllSkills[choice].MustConfirmText;
|
||||
if (*msg==0) msg = GStrings("NIGHTMARE");
|
||||
|
|
|
@ -25,7 +25,6 @@ skill nightmare
|
|||
DisableCheats
|
||||
SpawnFilter "Hard"
|
||||
Name "MNU_BLACKPLAGUE"
|
||||
MustConfirm
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -42,7 +42,6 @@ skill nightmare
|
|||
PlayerClassName "fighter" "MNU_TITAN"
|
||||
PlayerClassName "cleric" "MNU_POPE"
|
||||
PlayerClassName "mage" "MNU_ARCHMAGE"
|
||||
MustConfirm
|
||||
|
||||
|
||||
clusterdef 1
|
||||
|
|
|
@ -30,7 +30,6 @@ skill nightmare
|
|||
RespawnTime 16
|
||||
SpawnFilter "Hard"
|
||||
PicName "M_NMARE"
|
||||
MustConfirm
|
||||
Key b
|
||||
|
||||
defaultmap
|
||||
|
|
|
@ -320,6 +320,10 @@
|
|||
RelativePath=".\mapinfo\doom2.txt"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\mapinfo\doomcommon.txt"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\mapinfo\heretic.txt"
|
||||
>
|
||||
|
|
Loading…
Reference in a new issue