Decompile MapObject functions (#51)

* decompile MapObject

* fix regression

* match the remaining 4 functions
This commit is contained in:
Yanis
2026-04-16 13:27:46 +02:00
committed by GitHub
parent bcb6371074
commit 754eb10308
24 changed files with 563 additions and 149 deletions
@@ -121,7 +121,7 @@ end:
}
ARM MapObjectSwitchStep::~MapObjectSwitchStep() {
if (this->mUnk_20 == 2) {
if (this->mUnk_20.mUnk_00 == 2) {
this->func_ov000_0209e11c(0, 1);
this->func_ov000_0209d2c4(0, 0);
}
@@ -129,10 +129,10 @@ ARM MapObjectSwitchStep::~MapObjectSwitchStep() {
ARM bool MapObjectSwitchStep::vfunc_00(void) {
SET_FLAG(this->mFlags, MapObjFlag_9);
this->mUnk_18 = 1;
this->mUnk_18[0] = 1;
SET_FLAG(this->mFlags, MapObjFlag_10);
this->mUnk_19 = 1;
this->mUnk_18[1] = 1;
if (this->func_ov000_0209d29c(0)) {
this->func_ov000_0209e11c(2, 1);
@@ -182,8 +182,8 @@ ARM void MapObjectSwitchStep::func_ov000_0209e11c(unk32 param1, unk32 param2) {
this->mUnk_EA = 1;
}
if (this->mUnk_20 == 2) {
this->mUnk_E6 = this->mUnk_22;
if (this->mUnk_20.mUnk_00 == 2) {
this->mUnk_E6 = this->mUnk_20.mUnk_02;
this->mUnk_E4 = 0;
}