mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
Implement LegoRaceCar::FUN_10012ff0()
, refactoring (#1063)
* Implement `LegoRaceCar::FUN_10012ff0()`, refactor based on BETA10 * Add BETA10 annotations * Rename functions and variables based on BETA10 assertions * Address issues raised by linter * Rename variable, add BETA10 vtables * Rename legoracecar files to legoracers --------- Co-authored-by: jonschz <jonschz@users.noreply.github.com>
This commit is contained in:
@@ -785,7 +785,7 @@ LegoAnim::LegoAnim()
|
||||
m_duration = 0;
|
||||
m_actors = NULL;
|
||||
m_numActors = 0;
|
||||
m_scene = NULL;
|
||||
m_camAnim = NULL;
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100a0bc0
|
||||
@@ -799,8 +799,8 @@ LegoAnim::~LegoAnim()
|
||||
delete[] m_actors;
|
||||
}
|
||||
|
||||
if (m_scene != NULL) {
|
||||
delete m_scene;
|
||||
if (m_camAnim != NULL) {
|
||||
delete m_camAnim;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -845,9 +845,9 @@ LegoResult LegoAnim::Read(LegoStorage* p_storage, LegoS32 p_parseScene)
|
||||
}
|
||||
|
||||
if (p_parseScene) {
|
||||
m_scene = new LegoAnimScene();
|
||||
m_camAnim = new LegoAnimScene();
|
||||
|
||||
result = m_scene->Read(p_storage);
|
||||
result = m_camAnim->Read(p_storage);
|
||||
|
||||
if (result != SUCCESS) {
|
||||
goto done;
|
||||
|
Reference in New Issue
Block a user