mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-13 11:42:19 -05:00
Fix errors introduced by actor check reveal PR from references to GetSelectedOptionIndex. (#4607)
This commit is contained in:
parent
fe9bf7d956
commit
4edb83e2f3
@ -637,7 +637,7 @@ void RandomizerOnDialogMessageHandler() {
|
|||||||
MessageContext *msgCtx = &gPlayState->msgCtx;
|
MessageContext *msgCtx = &gPlayState->msgCtx;
|
||||||
Actor *actor = msgCtx->talkActor;
|
Actor *actor = msgCtx->talkActor;
|
||||||
auto ctx = Rando::Context::GetInstance();
|
auto ctx = Rando::Context::GetInstance();
|
||||||
bool revealMerchant = ctx->GetOption(RSK_MERCHANT_TEXT_HINT).GetSelectedOptionIndex() != RO_GENERIC_OFF;
|
bool revealMerchant = ctx->GetOption(RSK_MERCHANT_TEXT_HINT).GetContextOptionIndex() != RO_GENERIC_OFF;
|
||||||
bool nonBeanMerchants = ctx->GetOption(RSK_SHUFFLE_MERCHANTS).Is(RO_SHUFFLE_MERCHANTS_ALL_BUT_BEANS) ||
|
bool nonBeanMerchants = ctx->GetOption(RSK_SHUFFLE_MERCHANTS).Is(RO_SHUFFLE_MERCHANTS_ALL_BUT_BEANS) ||
|
||||||
ctx->GetOption(RSK_SHUFFLE_MERCHANTS).Is(RO_SHUFFLE_MERCHANTS_ALL);
|
ctx->GetOption(RSK_SHUFFLE_MERCHANTS).Is(RO_SHUFFLE_MERCHANTS_ALL);
|
||||||
|
|
||||||
@ -706,7 +706,7 @@ void RandomizerOnDialogMessageHandler() {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case TEXT_SCRUB_RANDOM:
|
case TEXT_SCRUB_RANDOM:
|
||||||
if (ctx->GetOption(RSK_SCRUB_TEXT_HINT).GetSelectedOptionIndex() != RO_GENERIC_OFF) {
|
if (ctx->GetOption(RSK_SCRUB_TEXT_HINT).GetContextOptionIndex() != RO_GENERIC_OFF) {
|
||||||
EnDns* enDns = (EnDns*)actor;
|
EnDns* enDns = (EnDns*)actor;
|
||||||
reveal = OTRGlobals::Instance->gRandomizer->GetCheckFromRandomizerInf((RandomizerInf)enDns->sohScrubIdentity.randomizerInf);
|
reveal = OTRGlobals::Instance->gRandomizer->GetCheckFromRandomizerInf((RandomizerInf)enDns->sohScrubIdentity.randomizerInf);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user