BURIED: Adjust comments

This commit is contained in:
Filippos Karapetis
2022-01-02 12:20:51 +02:00
parent 654cf83018
commit 3e595eedda
3 changed files with 7 additions and 7 deletions
+3 -1
View File
@@ -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;
+2 -4
View File
@@ -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();
+2 -2
View File
@@ -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);