mirror of https://github.com/AxioDL/metaforce.git
Merge pull request #200 from lioncash/temp
CLogBookScreen: Remove unconditional return true in IsScanComplete()
This commit is contained in:
commit
fc5170ede9
|
@ -31,13 +31,13 @@ CLogBookScreen::~CLogBookScreen() {
|
||||||
|
|
||||||
bool CLogBookScreen::IsScanComplete(CSaveWorld::EScanCategory category, CAssetId scan,
|
bool CLogBookScreen::IsScanComplete(CSaveWorld::EScanCategory category, CAssetId scan,
|
||||||
const CPlayerState& playerState) {
|
const CPlayerState& playerState) {
|
||||||
return true;
|
const float time = playerState.GetScanTime(scan);
|
||||||
float time = playerState.GetScanTime(scan);
|
if (category == CSaveWorld::EScanCategory::Artifact) {
|
||||||
if (category == CSaveWorld::EScanCategory::Artifact)
|
|
||||||
return time >= 0.5f;
|
return time >= 0.5f;
|
||||||
else
|
} else {
|
||||||
return time >= 1.f;
|
return time >= 1.f;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void CLogBookScreen::InitializeLogBook() {
|
void CLogBookScreen::InitializeLogBook() {
|
||||||
for (size_t i = 0; i < x19c_scanCompletes.size(); ++i) {
|
for (size_t i = 0; i < x19c_scanCompletes.size(); ++i) {
|
||||||
|
|
Loading…
Reference in New Issue