mirror of
https://github.com/zeldaret/oot
synced 2026-05-24 15:21:04 -04:00
I did it (#888)
Co-authored-by: petrie911 <pmontag@DESKTOP-LG8A167.localdomain>
This commit is contained in:
+21
-26
@@ -189,8 +189,6 @@ void EffectBlure_Init2(void* thisx, void* initParamsx) {
|
||||
void EffectBlure_Destroy(void* thisx) {
|
||||
}
|
||||
|
||||
#ifdef NON_MATCHING
|
||||
// single register swap (saved vs temp register)
|
||||
s32 EffectBlure_Update(void* thisx) {
|
||||
EffectBlure* this = (EffectBlure*)thisx;
|
||||
s32 i;
|
||||
@@ -204,29 +202,29 @@ s32 EffectBlure_Update(void* thisx) {
|
||||
}
|
||||
|
||||
while (true) {
|
||||
if (this->elements[0].state != 0) {
|
||||
if (this->elements[0].state == 0) {
|
||||
for (i = 0; i < 15; i++) {
|
||||
this->elements[i] = this->elements[i + 1];
|
||||
}
|
||||
|
||||
this->elements[i].state = 2;
|
||||
this->elements[i].p1.x = 0;
|
||||
this->elements[i].p1.y = 0;
|
||||
this->elements[i].p1.z = 0;
|
||||
this->elements[i].p2.x = 0;
|
||||
this->elements[i].p2.y = 0;
|
||||
this->elements[i].p2.z = 0;
|
||||
this->elements[i].flags = 0;
|
||||
this->elements[i].timer = 0;
|
||||
|
||||
this->numElements--;
|
||||
if (this->numElements <= 0) {
|
||||
this->numElements = 0;
|
||||
return 0;
|
||||
}
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
|
||||
for (i = 0; i < 15; i++) {
|
||||
this->elements[i] = this->elements[i + 1];
|
||||
}
|
||||
|
||||
this->elements[i].state = 2;
|
||||
this->elements[i].p1.x = 0;
|
||||
this->elements[i].p1.y = 0;
|
||||
this->elements[i].p1.z = 0;
|
||||
this->elements[i].p2.x = 0;
|
||||
this->elements[i].p2.y = 0;
|
||||
this->elements[i].p2.z = 0;
|
||||
this->elements[i].flags = 0;
|
||||
this->elements[i].timer = 0;
|
||||
|
||||
this->numElements--;
|
||||
if (this->numElements <= 0) {
|
||||
this->numElements = 0;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (this->elements[0].state == 2) {
|
||||
@@ -263,9 +261,6 @@ s32 EffectBlure_Update(void* thisx) {
|
||||
this->addAngle += this->addAngleChange;
|
||||
return 0;
|
||||
}
|
||||
#else
|
||||
#pragma GLOBAL_ASM("asm/non_matchings/code/z_eff_blure/EffectBlure_Update.s")
|
||||
#endif
|
||||
|
||||
void EffectBlure_UpdateFlags(EffectBlureElement* elem) {
|
||||
Vec3f sp64;
|
||||
|
||||
Reference in New Issue
Block a user