modelRender.c replace obsolete asm ref

This commit is contained in:
Banjo Kazooie
2022-12-01 18:55:54 -06:00
parent 342011dd23
commit 263b5bab4e
22 changed files with 182 additions and 181 deletions

View File

@@ -2,7 +2,8 @@
#include "functions.h"
#include "variables.h"
extern void playerModel_setYDisplacement(f32);
#include "core2/playerModel.h"
extern f32 func_8029494C(void);
extern f32 func_8029B2D0(void);
extern bool func_8029E284(s32, f32);

View File

@@ -2,6 +2,8 @@
#include "functions.h"
#include "variables.h"
#include "core2/playerModel.h"
f32 func_80294438(void);
void func_8029797C(f32);
void func_802979AC(f32, f32);
@@ -9,7 +11,6 @@ f32 func_80297A64(void);
void func_80299B58(f32, f32);
f32 func_8029B2E8(void);
f32 func_8029B33C(void);
void playerModel_setYDisplacement(f32);
void func_8028A084(s32, f32);
/* .data */

View File

@@ -2,7 +2,8 @@
#include "functions.h"
#include "variables.h"
extern void playerModel_setScale(f32);
#include "core2/playerModel.h"
extern void func_8028A084(s32, f32);
extern void func_8029AD68(f32, s32);

View File

@@ -29,18 +29,18 @@ u32 D_8037D550;
/* .code */
void func_802B5480(void) {
f32 sp2C[3];
ParticleEmitter *sp28;
f32 bubble_spawn_position[3];
ParticleEmitter *bubble_emitter;
if (func_80294574()) {
if (randf() > 0.5) {
playerModel_8029223C(sp2C);
playerModel_8029223C(bubble_spawn_position);
} else {
playerModel_80292260(sp2C);
playerModel_80292260(bubble_spawn_position);
}
sp28 = func_8029B950(&sp2C, 0.0f);
particleEmitter_setParticleVelocityRange(sp28, -60.0f, -100.0f, -60.0f, 60.0f, 0.0f, 60.0f);
particleEmitter_emitN(sp28, 1);
bubble_emitter = func_8029B950(bubble_spawn_position, 0.0f);
particleEmitter_setParticleVelocityRange(bubble_emitter, -60.0f, -100.0f, -60.0f, 60.0f, 0.0f, 60.0f);
particleEmitter_emitN(bubble_emitter, 1);
}
}