mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-22 16:18:50 -05:00
Fix Market Sneak with masks (#3047)
This commit is contained in:
parent
360a97ecfd
commit
22e4020265
@ -334,7 +334,12 @@ void func_80A56B40(EnHeishi4* this, PlayState* play) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this->type == HEISHI4_AT_MARKET_NIGHT) {
|
if (this->type == HEISHI4_AT_MARKET_NIGHT) {
|
||||||
if (CVarGetInteger("gMarketSneak", 0)) {
|
Player* player = GET_PLAYER(play);
|
||||||
|
// Only allow sneaking when not wearing a mask as that triggers different dialogue. MM Bunny hood disables
|
||||||
|
// these interactions, so bunny hood is fine in that case.
|
||||||
|
if (CVarGetInteger("gMarketSneak", 0) &&
|
||||||
|
(player->currentMask == PLAYER_MASK_NONE ||
|
||||||
|
(player->currentMask == PLAYER_MASK_BUNNY && CVarGetInteger("gMMBunnyHood", 0)))) {
|
||||||
this->actionFunc = EnHeishi4_MarketSneak;
|
this->actionFunc = EnHeishi4_MarketSneak;
|
||||||
} else {
|
} else {
|
||||||
this->actionFunc = func_80A56614;
|
this->actionFunc = func_80A56614;
|
||||||
|
Loading…
Reference in New Issue
Block a user