summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
authorvaguerant <vaguerant@users.noreply.github.com>2022-10-30 09:00:17 +1100
committerGitHub <noreply@github.com>2022-10-30 00:00:17 +0200
commit76e4e97a725225c52c63564e5227914c934e631f (patch)
tree78050f8734ccc2f1cddc9baafb6b0774cb88c363 /soh/src/code
parent4a686cf8002b36993a9cdc295d18ffe5877ffa90 (diff)
Correct gNoRestrictAge for gTimelessEquipment (#1856)
Diffstat (limited to 'soh/src/code')
-rw-r--r--soh/src/code/z_message_PAL.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/soh/src/code/z_message_PAL.c b/soh/src/code/z_message_PAL.c
index e756f9ed4..341bd9372 100644
--- a/soh/src/code/z_message_PAL.c
+++ b/soh/src/code/z_message_PAL.c
@@ -1750,11 +1750,11 @@ void Message_OpenText(GlobalContext* globalCtx, u16 textId) {
//font->msgLength, __FILE__, __LINE__);
} else if (CVar_GetS32("gAskToEquip", 0) &&
- (((LINK_IS_ADULT || CVar_GetS32("gNoRestrictAge", 0)) &&
+ (((LINK_IS_ADULT || CVar_GetS32("gTimelessEquipment", 0)) &&
// 0C = Biggoron, 4B = Giant's, 4E = Mirror Shield, 50-51 = Tunics
(textId == 0x0C || textId == 0x4B || textId == 0x4E ||
textId == 0x50 || textId == 0x51)) ||
- ((!LINK_IS_ADULT || CVar_GetS32("gNoRestrictAge", 0)) &&
+ ((!LINK_IS_ADULT || CVar_GetS32("gTimelessEquipment", 0)) &&
// 4C = Deku Shield, A4 = Kokiri Sword
(textId == 0x4C || textId == 0xA4)) ||
// 4D == Hylian Shield