refresh 4
This commit is contained in:
1 parent
a7c423cb43
commit
04732af90b
729 files changed
+21400
-37110
No files matched your search
@@ -628,7 +628,7 @@ static s32 beh_cmd_scale(void) {
|
||||
return BEH_CONTINUE;
|
||||
}
|
||||
|
||||
static s32 beh_cmd_obj_set_gravity(void) {
|
||||
static s32 beh_cmd_obj_set_physics(void) {
|
||||
UNUSED f32 sp04, sp00;
|
||||
|
||||
gCurrentObject->oWallHitboxRadius = (f32)(s16)(gBehCommand[1] >> 16);
|
||||
@@ -731,7 +731,7 @@ static BehCommandProc BehaviorJumpTable[] = {
|
||||
beh_cmd_obj_set_pos,
|
||||
beh_cmd_obj_set_float2,
|
||||
beh_cmd_interact_type,
|
||||
beh_cmd_obj_set_gravity,
|
||||
beh_cmd_obj_set_physics,
|
||||
Behavior31,
|
||||
beh_cmd_scale,
|
||||
beh_cmd_obj_bit_clear_int32,
|
||||
|
||||
@@ -34,6 +34,9 @@ extern Vec3s gVec3sOne;
|
||||
// Whether the node type has a function pointer of type GraphNodeFunc
|
||||
#define GRAPH_NODE_TYPE_FUNCTIONAL 0x100
|
||||
|
||||
// Type used for Bowser and an unused geo function in obj_behaviors.c
|
||||
#define GRAPH_NODE_TYPE_400 0x400
|
||||
|
||||
// The discriminant for different types of geo nodes
|
||||
#define GRAPH_NODE_TYPE_ROOT 0x001
|
||||
#define GRAPH_NODE_TYPE_ORTHO_PROJECTION 0x002
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
#include "sm64.h"
|
||||
#include "audio/external.h"
|
||||
#include "buffers/framebuffers.h"
|
||||
#include "buffers/zbuffer.h"
|
||||
#include "game/area.h"
|
||||
#include "game/display.h"
|
||||
#include "game/game.h"
|
||||
#include "game/mario.h"
|
||||
#include "game/memory.h"
|
||||
#include "game/object_helpers.h"
|
||||
|
||||
@@ -568,7 +568,9 @@ void mtxf_mul_vec3s(Mat4 mtx, Vec3s b) {
|
||||
* and no crashes occur.
|
||||
*/
|
||||
void mtxf_to_mtx(Mtx *dest, Mat4 src) {
|
||||
#if ENDIAN_IND
|
||||
#ifdef AVOID_UB
|
||||
// Avoid type-casting which is technically UB by calling the equivalent
|
||||
// guMtxF2L function. This helps little-endian systems, as well.
|
||||
guMtxF2L(src, dest);
|
||||
#else
|
||||
s32 asFixedPoint;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* Thus, for non-IDO compilers we use the standard-compliant version.
|
||||
*/
|
||||
extern f32 gSineTable[];
|
||||
#if BUGFIXES_CRITICAL
|
||||
#ifdef AVOID_UB
|
||||
#define gCosineTable (gSineTable + 0x400)
|
||||
#else
|
||||
extern f32 gCosineTable[];
|
||||
|
||||
Reference in new issue
Block a user