mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-14 10:37:17 -07:00
Clang
This commit is contained in:
parent
df0439fd3c
commit
6bc1131f4a
1 changed files with 8 additions and 17 deletions
|
@ -299,7 +299,8 @@ bool IsCheckHidden(RandomizerCheck rc) {
|
|||
bool isJunk = itemLocation->GetPlacedItem().GetGIEntry()->getItemCategory == ITEM_CATEGORY_JUNK;
|
||||
bool knownJunk = (seen || scummed) && isJunk;
|
||||
|
||||
return (skipped && hideSkipped) || (seen && hideSeen) || (scummed && hideScummed) || (unchecked && hideUnchecked) || (knownJunk && hideJunk);
|
||||
return (skipped && hideSkipped) || (seen && hideSeen) || (scummed && hideScummed) || (unchecked && hideUnchecked) ||
|
||||
(knownJunk && hideJunk);
|
||||
}
|
||||
|
||||
void RecalculateAreaTotals(RandomizerCheckArea rcArea) {
|
||||
|
@ -1248,11 +1249,8 @@ bool ShouldShowCheck(RandomizerCheck check) {
|
|||
Rando::ItemLocation* itemLoc = Rando::Context::GetInstance()->GetItemLocation(check);
|
||||
RandomizerCheckStatus status = itemLoc->GetCheckStatus();
|
||||
|
||||
if (
|
||||
hideJunk &&
|
||||
(status == RCSHOW_SEEN || status == RCSHOW_IDENTIFIED || status == RCSHOW_SCUMMED) &&
|
||||
itemLoc->GetPlacedItem().GetGIEntry()->getItemCategory == ITEM_CATEGORY_JUNK
|
||||
) {
|
||||
if (hideJunk && (status == RCSHOW_SEEN || status == RCSHOW_IDENTIFIED || status == RCSHOW_SCUMMED) &&
|
||||
itemLoc->GetPlacedItem().GetGIEntry()->getItemCategory == ITEM_CATEGORY_JUNK) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1622,11 +1620,8 @@ bool IsVisibleInCheckTracker(RandomizerCheck rc) {
|
|||
Rando::ItemLocation* itemLoc = Rando::Context::GetInstance()->GetItemLocation(rc);
|
||||
RandomizerCheckStatus status = itemLoc->GetCheckStatus();
|
||||
|
||||
if (
|
||||
hideJunk &&
|
||||
(status == RCSHOW_SEEN || status == RCSHOW_IDENTIFIED || status == RCSHOW_SCUMMED) &&
|
||||
itemLoc->GetPlacedItem().GetGIEntry()->getItemCategory == ITEM_CATEGORY_JUNK
|
||||
) {
|
||||
if (hideJunk && (status == RCSHOW_SEEN || status == RCSHOW_IDENTIFIED || status == RCSHOW_SCUMMED) &&
|
||||
itemLoc->GetPlacedItem().GetGIEntry()->getItemCategory == ITEM_CATEGORY_JUNK) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1747,12 +1742,8 @@ void DrawLocation(RandomizerCheck rc) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (
|
||||
!showHidden &&
|
||||
hideJunk &&
|
||||
(status == RCSHOW_SEEN || status == RCSHOW_IDENTIFIED || status == RCSHOW_SCUMMED) &&
|
||||
itemLoc->GetPlacedItem().GetGIEntry()->getItemCategory == ITEM_CATEGORY_JUNK
|
||||
) {
|
||||
if (!showHidden && hideJunk && (status == RCSHOW_SEEN || status == RCSHOW_IDENTIFIED || status == RCSHOW_SCUMMED) &&
|
||||
itemLoc->GetPlacedItem().GetGIEntry()->getItemCategory == ITEM_CATEGORY_JUNK) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue