Implement/match LegoAct2::FUN_10052560() (#1174)

* Implement/match `LegoAct2::FUN_10052560()`

* Fix formatting

* Fix linter errors

* Address review comment

---------

Co-authored-by: jonschz <jonschz@users.noreply.github.com>
This commit is contained in:
jonschz
2024-11-29 21:04:50 +01:00
committed by GitHub
parent 7256eeb0ad
commit 29a0ae8f07
4 changed files with 109 additions and 19 deletions

View File

@@ -488,6 +488,7 @@ const char* LegoOmni::GetWorldName(MxU32 p_id)
}
// FUNCTION: LEGO1 0x1005b460
// FUNCTION: BETA10 0x1008edd8
MxAtomId* LegoOmni::GetWorldAtom(MxU32 p_id)
{
for (MxS32 i = 0; i < 19; i++) {
@@ -496,6 +497,8 @@ MxAtomId* LegoOmni::GetWorldAtom(MxU32 p_id)
}
}
// A gem from BETA10
assert("Hey, check your code. We do not have this world." == NULL);
return NULL;
}