From 3e595eedda30d6eb381b09fd5d8ef651802a28fa Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sun, 2 Jan 2022 06:04:17 +0200 Subject: [PATCH] BURIED: Adjust comments --- engines/buried/biochip_right.h | 4 +++- engines/buried/complete.cpp | 6 ++---- engines/buried/death.cpp | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/engines/buried/biochip_right.h b/engines/buried/biochip_right.h index 2d7bdb99a23..06a5c9d276e 100644 --- a/engines/buried/biochip_right.h +++ b/engines/buried/biochip_right.h @@ -63,7 +63,9 @@ public: void onEnable(bool enable); void onLButtonUp(const Common::Point &point, uint flags); - // clone2727 says: These are labeled as HACKS, so I assume they are. + // These are used to enable the help and comment buttons + // when the player finds Arthur, while he explains how + // these two buttons are used. bool _forceHelp; bool _forceComment; diff --git a/engines/buried/complete.cpp b/engines/buried/complete.cpp index ea7def12bfe..88d68eaf574 100644 --- a/engines/buried/complete.cpp +++ b/engines/buried/complete.cpp @@ -138,9 +138,10 @@ CompletionWindow::CompletionWindow(BuriedEngine *vm, Window *parent, GlobalFlags int totalScore = finalCriticalEvidenceScore + finalSupportingEvidenceScore + finalPuzzleScore + finalResearchScore + completionScore; // Build the string buffers + // Newer versions include these strings as resources in the main executable. + // For earlier versions, we hardcode them here. if (_walkthroughMode) { if (_vm->getVersion() >= MAKEVERSION(1, 0, 4, 0)) { - // HACK HACK HACK: Oh god. This is horrid. Common::String stringResource = _vm->getString(IDS_COMPL_WALK_SCORE_DESC_TEMPL); _scoringTextDescriptions = Common::String::format(stringResource.c_str(), criticalEvidence, supportingEvidence, puzzlesSolved, researchBonusRaw); stringResource = _vm->getString(IDS_COMPL_WALK_SCORE_AMT_TEMPL); @@ -154,7 +155,6 @@ CompletionWindow::CompletionWindow(BuriedEngine *vm, Window *parent, GlobalFlags totalScore -= hintsScore; if (_vm->getVersion() >= MAKEVERSION(1, 0, 4, 0)) { - // HACK HACK HACK: Again, horrid. Common::String stringResource = _vm->getString(IDS_COMPL_SCORE_DESC_TEMPL); _scoringTextDescriptions = Common::String::format(stringResource.c_str(), criticalEvidence, supportingEvidence, puzzlesSolved, researchBonusRaw, hints); stringResource = _vm->getString(IDS_COMPL_SCORE_AMT_TEMPL); @@ -166,8 +166,6 @@ CompletionWindow::CompletionWindow(BuriedEngine *vm, Window *parent, GlobalFlags } } - // This would be a hack, but since it's just printing one number, I'm not - // loading that damned string too. _scoringTextFinalScore = Common::String::format("%d", totalScore); _vm->_sound->setAmbientSound(); diff --git a/engines/buried/death.cpp b/engines/buried/death.cpp index 34af37cf36f..e0c48fbc59d 100644 --- a/engines/buried/death.cpp +++ b/engines/buried/death.cpp @@ -124,9 +124,10 @@ AgentEvaluation::AgentEvaluation(BuriedEngine *vm, GlobalFlags &globalFlags, int int totalScore = finalCriticalEvidenceScore + finalSupportingEvidenceScore + finalPuzzleScore + finalResearchScore + completionScore; // Build the string buffers + // Newer versions include these strings as resources in the main executable. + // For earlier versions, we hardcode them here. if (_globalFlags.generalWalkthroughMode != 0) { if (vm->getVersion() >= MAKEVERSION(1, 0, 4, 0)) { - // HACK HACK HACK: More horridness. Common::String stringResource = vm->getString(IDS_DEATH_WALK_SCORE_DESC_TEMPL); _scoringTextDescriptions = Common::String::format(stringResource.c_str(), criticalEvidence, supportingEvidence, puzzlesSolved, researchBonusRaw); stringResource = vm->getString(IDS_DEATH_WALK_SCORE_AMT_TEMPL); @@ -153,7 +154,6 @@ AgentEvaluation::AgentEvaluation(BuriedEngine *vm, GlobalFlags &globalFlags, int totalScore -= hintsScore; if (vm->getVersion() >= MAKEVERSION(1, 0, 4, 0)) { - // HACK HACK HACK: Did I mention this was terrible? Common::String stringResource = vm->getString(IDS_DEATH_SCORE_DESC_TEMPL); _scoringTextDescriptions = Common::String::format(stringResource.c_str(), criticalEvidence, supportingEvidence, puzzlesSolved, researchBonusRaw, hints); stringResource = vm->getString(IDS_DEATH_SCORE_AMT_TEMPL);