summaryrefslogtreecommitdiff
path: root/mm/2s2h/Rando/MiscBehavior/OnSceneInit.cpp
blob: 81637af71f1d8b8d83799a66540f1223fde6444e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "MiscBehavior.h"

extern "C" {
#include "functions.h"
#include "variables.h"
}

void Rando::MiscBehavior::OnSceneInit(s16 sceneId, s8 spawnNum) {
    InterfaceContext* interfaceCtx = &gPlayState->interfaceCtx;

    // Remove mask restrictions for Clock Tower rooftop
    if (sceneId == SCENE_OKUJOU) {
        interfaceCtx->restrictions.masks = 0;
    }
}