summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Dubé <serprex@users.noreply.github.com>2026-03-08 02:35:08 +0000
committerGitHub <noreply@github.com>2026-03-08 02:35:08 +0000
commit3174545749e2b40fdaccc598fe813fee8bceacb0 (patch)
treed899a2f2c5b381218cfd71d5d0e48fb91a7286cd
parenta1aa0468143695a61beb99f622ef7a324f12640b (diff)
Fix Ganondorf hint formatting (#6331)
-rw-r--r--soh/soh/Enhancements/randomizer/Messages/StaticHints.cpp1
-rw-r--r--soh/soh/Enhancements/randomizer/hint.cpp11
2 files changed, 3 insertions, 9 deletions
diff --git a/soh/soh/Enhancements/randomizer/Messages/StaticHints.cpp b/soh/soh/Enhancements/randomizer/Messages/StaticHints.cpp
index 4bc2a7b7f..6f163c58d 100644
--- a/soh/soh/Enhancements/randomizer/Messages/StaticHints.cpp
+++ b/soh/soh/Enhancements/randomizer/Messages/StaticHints.cpp
@@ -38,7 +38,6 @@ void BuildGanondorfHint(uint16_t* textId, bool* loadFromMessageTable) {
msg = RAND_GET_HINT(RH_GANONDORF_HINT)->GetHintMessage(MF_AUTO_FORMAT, 0);
}
}
- msg.AutoFormat();
msg.LoadIntoFont();
*loadFromMessageTable = false;
}
diff --git a/soh/soh/Enhancements/randomizer/hint.cpp b/soh/soh/Enhancements/randomizer/hint.cpp
index c99c71b94..8075b72be 100644
--- a/soh/soh/Enhancements/randomizer/hint.cpp
+++ b/soh/soh/Enhancements/randomizer/hint.cpp
@@ -130,14 +130,8 @@ void Hint::FillGapsInData() {
if (locations.size() == 0 && StaticData::staticHintInfoMap.contains(ownKey)) {
locations = StaticData::staticHintInfoMap[ownKey].targetChecks;
}
- bool fillAreas = true;
- bool fillItems = true;
- if (areas.size() > 0) {
- fillAreas = false;
- }
- if (items.size() > 0) {
- fillItems = false;
- }
+ bool fillAreas = areas.size() == 0;
+ bool fillItems = items.size() == 0;
for (uint8_t c = 0; c < locations.size(); c++) {
// if area matters for the hint, it should be specified and not left to this
if (fillAreas) {
@@ -205,6 +199,7 @@ void Hint::NamesChosen() {
hintType == HINT_TYPE_ALTAR_CHILD || hintType == HINT_TYPE_ALTAR_ADULT) {
namesTemp = {};
saveNames = false;
+
for (uint8_t c = 0; c < areas.size(); c++) {
uint8_t selection = GetRandomHintTextEntry(GetAreaHintText(c));
if (selection > 0) {