mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
Make SBARINFO's HasWeaponPiece recognize removed pieces
- Fixed: HasWeaponPiece assumed that once a piece was given, it would not be removed. The easiest way to break this assumption is by loading an earlier save where you had fewer pieces. (The catch being that if you removed all pieces, it would notice that.)
This commit is contained in:
parent
5f43e5b4ea
commit
a41af2de73
1 changed files with 1 additions and 2 deletions
|
@ -3069,8 +3069,7 @@ class CommandHasWeaponPiece : public SBarInfoCommandFlowControl
|
|||
AWeaponHolder *hold = static_cast<AWeaponHolder*>(inv);
|
||||
if(hold->PieceWeapon == weapon)
|
||||
{
|
||||
if(hold->PieceMask & (1 << (piece-1)))
|
||||
SetTruth(true, block, statusBar);
|
||||
SetTruth(0 != (hold->PieceMask & (1 << (piece-1))), block, statusBar);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue