From 2a1df559a95af7f5ebfc2880a2b3ea9715bf9e90 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 8 Mar 2020 11:15:10 -0400 Subject: [PATCH] CLogBookScreen: Remove unconditional return true in IsScanComplete() This was temporarily added in for debugging purposes in the past but was never removed. --- Runtime/MP1/CLogBookScreen.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Runtime/MP1/CLogBookScreen.cpp b/Runtime/MP1/CLogBookScreen.cpp index a459d9c1a..e665c0c16 100644 --- a/Runtime/MP1/CLogBookScreen.cpp +++ b/Runtime/MP1/CLogBookScreen.cpp @@ -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() {