collapse TUs

This commit is contained in:
theo3
2021-03-21 20:51:08 -07:00
parent 69edec1eb9
commit bd50d449de
71 changed files with 551 additions and 635 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
#include "enemy.h"
#include "player.h"
#include "room.h"
#include "trig.h"
#include "coord.h"
#include "fileScreen.h"
#include "random.h"
#include "functions.h"
+1 -1
View File
@@ -2,7 +2,7 @@
#include "entity.h"
#include "enemy.h"
#include "functions.h"
#include "trig.h"
#include "coord.h"
#include "random.h"
#include "player.h"
+1 -1
View File
@@ -3,12 +3,12 @@
#include "enemy.h"
#include "random.h"
#include "functions.h"
#include "coord.h"
extern u32 sub_080002D4(s32, s32, u32);
extern u32 sub_080002BC(s32, s32, u32);
extern Entity* gUnk_020000B0;
extern s16 gSineTable[];
bool32 Leever_PlayerInRange(Entity*, s32);
void Leever_Move(Entity*);
+2 -2
View File
@@ -6,7 +6,7 @@
void sub_08045374(Entity*);
extern u32 sub_0806FA04(u32, u32);
//extern u32 FixedDiv(u32, u32);
extern void sub_080452E4();
extern void ReplaceMonitoredEntity(Entity*, Entity*);
@@ -70,7 +70,7 @@ void sub_080452FC(Entity* this) {
this->action = 3;
this->actionDelay = 1;
if (0 < this->speed)
this->actionDelay = sub_0806FA04(0x1000, this->speed) >> 0x8;
this->actionDelay = FixedDiv(0x1000, this->speed) >> 0x8;
if (sub_08049FA0(this) == 0 && (Random() & 3)) {
cVar2 = sub_08049EE4(this);
+2 -2
View File
@@ -12,7 +12,7 @@ typedef struct {
void sub_08044FF8(Entity*);
void sub_08045178(Entity*, Entity*, int, int);
extern u32 sub_0806FA04(u32, u32);
//extern u32 FixedDiv(u32, u32);
extern void sub_0804A4E4(Entity*, Entity*);
extern u32 sub_080002CC(Entity*, s32, s32);
@@ -68,7 +68,7 @@ void sub_08045018(Entity* this) {
this->action = 3;
this->actionDelay = 1;
if (0 < this->speed) {
this->actionDelay = sub_0806FA04(4096, this->speed) >> 8;
this->actionDelay = FixedDiv(4096, this->speed) >> 8;
}
if (sub_08049FA0(this) == 0 && (Random() & 3)) {
this->direction = (sub_08049EE4(this) + 0xfc + (Random() & 8)) & 24;
+1 -1
View File
@@ -1,6 +1,6 @@
#include "global.h"
#include "entity.h"
#include "position.h"
#include "coord.h"
#include "random.h"
#include "functions.h"