Improve dAcOdistantShip_c::create

This commit is contained in:
CovenEsme
2025-05-27 15:50:39 +01:00
parent 0c9d9fa357
commit b1381add58
+3 -7
View File
@@ -17,15 +17,11 @@ bool dAcOdistantShip_c::createHeap() {
}
int dAcOdistantShip_c::create() {
// Sure, why not
// Scratch for anyone who wants to look for a better solution:
// https://decomp.me/scratch/0qPPj
mIsVisible = false;
u32 p = params;
u16 r = getRoomId();
mSubtype = (p >> 8) & 0xF;
u8 flag = getFromParams(0, 0xFF);
mSubtype = getFromParams(8, 0xF);
if (SceneflagManager::sInstance->checkBoolFlag(r, p & 0xFF)) {
if (SceneflagManager::sInstance->checkBoolFlag(roomid, flag)) {
mIsVisible = true;
}