2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-06-03 00:01:23 +00:00

CLogBookScreen: Remove unconditional return true in IsScanComplete()

This was temporarily added in for debugging purposes in the past but was
never removed.
This commit is contained in:
Lioncash 2020-03-08 11:15:10 -04:00
parent 4daa8ac374
commit 2a1df559a9

View File

@ -31,12 +31,12 @@ CLogBookScreen::~CLogBookScreen() {
bool CLogBookScreen::IsScanComplete(CSaveWorld::EScanCategory category, CAssetId scan,
const CPlayerState& playerState) {
return true;
float time = playerState.GetScanTime(scan);
if (category == CSaveWorld::EScanCategory::Artifact)
const float time = playerState.GetScanTime(scan);
if (category == CSaveWorld::EScanCategory::Artifact) {
return time >= 0.5f;
else
} else {
return time >= 1.f;
}
}
void CLogBookScreen::InitializeLogBook() {