mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 06:53:58 +00:00
- added 2 SBARINFO patches.
SVN r1211 (trunk)
This commit is contained in:
parent
d22f3ebfa6
commit
e18111ce5f
2 changed files with 2 additions and 2 deletions
|
@ -1241,7 +1241,7 @@ void DSBarInfo::doCommands(SBarInfoBlock &block, int xOffset, int yOffset, int a
|
|||
}
|
||||
break;
|
||||
case SBARINFO_USESSECONDARYAMMO:
|
||||
if((CPlayer->ReadyWeapon->AmmoType2 != NULL && !(cmd.flags & SBARINFOEVENT_NOT)) ||
|
||||
if((CPlayer->ReadyWeapon->AmmoType2 != NULL && CPlayer->ReadyWeapon->AmmoType2 != CPlayer->ReadyWeapon->AmmoType1 && !(cmd.flags & SBARINFOEVENT_NOT)) ||
|
||||
(CPlayer->ReadyWeapon->AmmoType2 == NULL && cmd.flags & SBARINFOEVENT_NOT))
|
||||
{
|
||||
doCommands(cmd.subBlock, xOffset, yOffset, alpha);
|
||||
|
|
|
@ -272,7 +272,7 @@ void SBarInfo::ParseSBarInfo(int lump)
|
|||
{
|
||||
sc.ScriptError("Unkown flag '%s'.", sc.String);
|
||||
}
|
||||
if(!sc.CheckToken('|') || !sc.CheckToken(','))
|
||||
if(!sc.CheckToken('|') && !sc.CheckToken(','))
|
||||
goto FinishStatusBar; //No more args so we must skip over anything else and go to the end.
|
||||
}
|
||||
sc.MustGetToken(TK_FloatConst);
|
||||
|
|
Loading…
Reference in a new issue