Refresh 10

This commit is contained in:
n64 committed 2020-06-02 12:44:34 -04:00
1 parent e58669b4b3
commit d43d9b7f20
444 files changed
+30163 -7628

No files matched your search

+15 -18
View File
@@ -1,18 +1,17 @@
#include <ultra64.h>
#include <PR/ultratypes.h>
#include "sm64.h"
#include "engine/math_util.h"
#include "area.h"
#include "audio/external.h"
#include "engine/geo_layout.h"
#include "engine/graph_node.h"
#include "object_helpers.h"
#include "engine/behavior_script.h"
#include "engine/math_util.h"
#include "engine/surface_collision.h"
#include "audio/external.h"
#include "level_update.h"
#include "spawn_object.h"
#include "object_list_processor.h"
#include "level_table.h"
#include "object_constants.h"
#include "object_fields.h"
#include "object_helpers.h"
#include "object_list_processor.h"
#include "spawn_object.h"
#include "types.h"
/**
* An unused linked list struct that seems to have been replaced by ObjectNode.
@@ -28,7 +27,7 @@ struct LinkedList {
* Appears to have been replaced by init_free_object_list.
*/
void unused_init_free_list(struct LinkedList *usedList, struct LinkedList **pFreeList,
struct LinkedList *pool, s32 itemSize, s32 poolLength) {
struct LinkedList *pool, s32 itemSize, s32 poolLength) {
s32 i;
struct LinkedList *node = pool;
@@ -55,7 +54,7 @@ void unused_init_free_list(struct LinkedList *usedList, struct LinkedList **pFre
* Appears to have been replaced by try_allocate_object.
*/
struct LinkedList *unused_try_allocate(struct LinkedList *destList,
struct LinkedList *freeList) {
struct LinkedList *freeList) {
struct LinkedList *node = freeList->next;
if (node != NULL) {
@@ -187,7 +186,7 @@ static void unused_delete_leaf_nodes(struct Object *obj) {
* Free the given object.
*/
void unload_object(struct Object *obj) {
obj->activeFlags = ACTIVE_FLAGS_DEACTIVATED;
obj->activeFlags = ACTIVE_FLAG_DEACTIVATED;
obj->prevObj = NULL;
obj->header.gfx.throwMatrix = NULL;
@@ -295,8 +294,7 @@ struct Object *allocate_object(struct ObjectNode *objList) {
}
/**
* If the object is close to being on the floor, move it to be exactly on the
* floor.
* If the object is close to being on the floor, move it to be exactly on the floor.
*/
static void snap_object_to_floor(struct Object *obj) {
struct Surface *surface;
@@ -310,8 +308,7 @@ static void snap_object_to_floor(struct Object *obj) {
}
/**
* Spawn an object at the origin with the behavior script at virtual address
* bhvScript.
* Spawn an object at the origin with the behavior script at virtual address bhvScript.
*/
struct Object *create_object(const BehaviorScript *bhvScript) {
s32 objListIndex;
@@ -360,5 +357,5 @@ struct Object *create_object(const BehaviorScript *bhvScript) {
*/
void mark_obj_for_deletion(struct Object *obj) {
//! Same issue as obj_mark_for_deletion
obj->activeFlags = ACTIVE_FLAGS_DEACTIVATED;
obj->activeFlags = ACTIVE_FLAG_DEACTIVATED;
}