Reimpl star emitter (#180)

* Reimpl star emitter

* Remove OObject Lists

* wip mole reimpl

* nearly fix moles

* Cleanup

* Update reimpl seagull

* Rework finishline to auto spawn and not to run in credits

* Fix train crossing direction in extra mode

* Clarification

* micro optimization

* update mole

---------

Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com>
This commit is contained in:
MegaMech
2025-02-07 14:36:55 -07:00
committed by GitHub
parent 6f8cbc0279
commit fc1e1a9782
67 changed files with 931 additions and 964 deletions
-44
View File
@@ -3956,50 +3956,6 @@ void func_800557B4(s32 objectIndex, u32 arg1, u32 arg2) {
}
}
void render_object_train_penguins(s32 cameraId) {
s32 i;
s32 objectIndex;
s32 temp_s1;
s32 var_a3;
u16 var_s1;
u32 var_s3;
if (gPlayerCountSelection1 == 1) {
var_s3 = 0x0003D090;
} else if (gPlayerCountSelection1 == 2) {
var_s3 = 0x00027100;
} else {
var_s3 = 0x00015F90;
}
for (i = 0; i < NUM_PENGUINS; i++) {
objectIndex = indexObjectList1[i];
if (gObjectList[objectIndex].state >= 2) {
if (gPlayerCountSelection1 == 1) {
var_s1 = 0x4000;
if (i == 0) {
var_a3 = 0x000005DC;
} else if (func_80072320(objectIndex, 8) != 0) {
var_a3 = 0x00000320;
} else {
var_a3 = 0x000003E8;
}
} else {
if (func_80072320(objectIndex, 8) != 0) {
var_a3 = 0x000001F4;
var_s1 = 0x4000;
} else {
var_a3 = 0x00000258;
var_s1 = 0x5555;
}
}
temp_s1 = func_8008A364(objectIndex, cameraId, var_s1, var_a3);
if (is_obj_flag_status_active(objectIndex, VISIBLE) != 0) {
func_800557B4(objectIndex, (u32) temp_s1, var_s3);
}
}
}
}
void func_80055EF4(s32 objectIndex, UNUSED s32 arg1) {
Object* object;