more viewport function documentation and cleaning up prototypes
This commit is contained in:
@@ -86,7 +86,7 @@ void chBottlesBonusCursor_func_802DF460(s32 indx, ActorMarker *caller, f32 arg2[
|
||||
sp1C[0] = arg2[0] * 100.0f;
|
||||
sp1C[1] = arg2[1] * 100.0f;
|
||||
sp1C[2] = arg2[2] * 100.0f;
|
||||
if (func_8024E030(sp1C, D_8037E068[indx]) == 0) {
|
||||
if (viewport_func_8024E030(sp1C, D_8037E068[indx]) == 0) {
|
||||
D_8037E068[indx][0] = D_8037E068[indx][1] = 0.0f;
|
||||
}
|
||||
}
|
||||
@@ -149,7 +149,7 @@ void chBottlesBonusCursor_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx) {
|
||||
modelRender_postDraw((GenFunction_1)actor_postdrawMethod, (s32)chBottlesBonusCursorMarker);
|
||||
modelRender_setDepthMode(MODEL_RENDER_DEPTH_FULL);
|
||||
actor_setOpacity(this, 0xB9);
|
||||
func_8024E030(this->position, D_8037E5C0.unk18);
|
||||
viewport_func_8024E030(this->position, D_8037E5C0.unk18);
|
||||
sp3C = (this->scale * 650.0f);
|
||||
func_80253208(gfx,
|
||||
(s32)(D_8037E5C0.unk18[0] - sp3C/2), (s32)(D_8037E5C0.unk18[1] - sp3C/2),
|
||||
@@ -157,7 +157,7 @@ void chBottlesBonusCursor_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx) {
|
||||
D_803A5D00[getActiveFramebuffer()]
|
||||
);
|
||||
modelRender_draw(gfx, mtx, this->position, rotation, this->scale, NULL, marker_loadModelBin(chBottlesBonusCursorMarker));
|
||||
func_8024E030(this->position, D_8037E5C0.unk10);
|
||||
viewport_func_8024E030(this->position, D_8037E5C0.unk10);
|
||||
if (this->state == 1) {
|
||||
D_8037E5C0.unk10[0] -= 24.0f;
|
||||
D_8037E5C0.unk10[1] -= 8.0f;
|
||||
|
@@ -2,8 +2,6 @@
|
||||
#include "functions.h"
|
||||
#include "variables.h"
|
||||
|
||||
extern int func_8024DB50(f32 arg0[3], f32 arg1);
|
||||
|
||||
void chfirefx_update(Actor *this);
|
||||
|
||||
/* .data */
|
||||
@@ -75,7 +73,7 @@ void chfirefx_update(Actor *this){
|
||||
}
|
||||
}//L80359934
|
||||
if(subaddie_playerIsWithinSphere(this, 2000)){
|
||||
if( func_8024DB50(this->position, 50.0f) && this->unk38_31 ){
|
||||
if( viewport_func_8024DB50(this->position, 50.0f) && this->unk38_31 ){
|
||||
if(!(globalTimer_getTime() & 3) && randf() < 0.1){
|
||||
__chfirefx_spawnSmoke(this->position, this->scale);
|
||||
} //L803599AC
|
||||
|
Reference in New Issue
Block a user