Merge branch 'master' of https://gitlab.com/banjo.decomp/banjo-kazooie into contrib
This commit is contained in:
@@ -14,7 +14,7 @@ extern void func_802A6388(f32);
|
||||
extern f32 chwadingboots_802D6E4C(Actor *);
|
||||
extern void set_turbo_duration(f32);
|
||||
extern f32 chtrainers_getDuration(Actor *);
|
||||
extern int func_80259254(f32 vec[3], f32 x, f32 z, f32 val);
|
||||
extern int ml_vec3f_point_within_horizontal_distance(f32 vec[3], f32 x, f32 z, f32 val);
|
||||
extern void func_802EE354(Actor *, s32, s32, s32, f32, f32, f32, f32 arg8[3], s32, f32 arg10[2]);
|
||||
extern void func_8035644C(s32);
|
||||
extern void func_8035646C(s32 arg0);
|
||||
|
@@ -271,9 +271,7 @@ void baModel_setVisible(s32 arg0){
|
||||
void baModel_802921D4(f32 arg0[3]){
|
||||
if(player_getWaterState() == BSWATERGROUP_0_NONE){
|
||||
D_8037C150.unk0 = 1;
|
||||
D_8037C150.unk4[0] = arg0[0];
|
||||
D_8037C150.unk4[1] = arg0[1];
|
||||
D_8037C150.unk4[2] = arg0[2];
|
||||
TUPLE_COPY(D_8037C150.unk4, arg0)
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -3,8 +3,6 @@
|
||||
#include "variables.h"
|
||||
#include "core2/ba/physics.h"
|
||||
|
||||
#define _SQ3v1(v) (v[0] * v[0] + v[1] * v[1] + v[2] * v[2])
|
||||
|
||||
extern f32 ml_sin_deg(f32);
|
||||
extern f32 ml_dotProduct_vec3f(f32[3], f32[3]);
|
||||
extern void func_80256D0C(f32, f32, f32, f32, f32, f32 *, f32 *, f32 *);
|
||||
@@ -118,7 +116,8 @@ void __baphysics_update_no_gravity(void){
|
||||
//update velocity
|
||||
ml_vec3f_diff_copy(sp24, baphysics_target_velocity, s_player_velocity);
|
||||
ml_vec3f_scale(sp24, time_getDelta()*baphysics_acceleration);
|
||||
if(_SQ3v1(sp24) < 0.02){
|
||||
|
||||
if (LENGTH_SQ_VEC3F(sp24) < 0.02) {
|
||||
ml_vec3f_copy(s_player_velocity, baphysics_target_velocity);
|
||||
}
|
||||
else{
|
||||
|
Reference in New Issue
Block a user