1
0
mirror of https://github.com/zeldaret/oot.git synced 2024-09-22 21:35:27 +00:00
oot/src/code/code_80043480.c

80 lines
1.7 KiB
C
Raw Normal View History

#include "global.h"
2020-03-17 04:31:30 +00:00
2020-03-22 21:19:43 +00:00
void DynaPolyInfo_SetActorMove(DynaPolyActor* dynaActor, DynaPolyMoveFlag flags) {
2020-03-17 04:31:30 +00:00
dynaActor->dynaPolyId = -1;
dynaActor->unk_15C = flags;
dynaActor->unk_160 = 0;
dynaActor->unk_150 = 0.0f;
dynaActor->unk_154 = 0.0f;
}
2020-03-22 21:19:43 +00:00
void func_800434A0(DynaPolyActor* dynaActor) {
2020-03-17 04:31:30 +00:00
dynaActor->unk_160 = 0;
}
2020-03-22 21:19:43 +00:00
void func_800434A8(DynaPolyActor* dynaActor) {
2020-03-17 04:31:30 +00:00
dynaActor->unk_160 |= 1;
}
2020-03-22 21:19:43 +00:00
void func_800434B8(DynaPolyActor* dynaActor) {
2020-03-17 04:31:30 +00:00
dynaActor->unk_160 |= 2;
}
2020-03-22 21:19:43 +00:00
void func_800434C8(CollisionContext* colCtx, u32 floorPolySource) {
DynaPolyActor* dynaActor = DynaPolyInfo_GetActor(colCtx, floorPolySource);
2020-03-17 04:31:30 +00:00
2020-03-22 21:19:43 +00:00
if (dynaActor != NULL) {
2020-03-17 04:31:30 +00:00
func_800434B8(dynaActor);
2020-03-22 21:19:43 +00:00
}
2020-03-17 04:31:30 +00:00
}
2020-03-22 21:19:43 +00:00
void func_800434F8(DynaPolyActor* dynaActor) {
2020-03-17 04:31:30 +00:00
dynaActor->unk_160 |= 4;
}
2020-03-22 21:19:43 +00:00
void func_80043508(CollisionContext* colCtx, u32 floorPolySource) {
DynaPolyActor* dynaActor = DynaPolyInfo_GetActor(colCtx, floorPolySource);
2020-03-17 04:31:30 +00:00
2020-03-22 21:19:43 +00:00
if (dynaActor != NULL) {
2020-03-17 04:31:30 +00:00
func_800434F8(dynaActor);
2020-03-22 21:19:43 +00:00
}
2020-03-17 04:31:30 +00:00
}
2020-03-22 21:19:43 +00:00
void func_80043538(DynaPolyActor* dynaActor) {
2020-03-17 04:31:30 +00:00
dynaActor->unk_160 |= 8;
}
2020-03-22 21:19:43 +00:00
s32 func_80043548(DynaPolyActor* dynaActor) {
if (dynaActor->unk_160 & 1) {
2020-03-17 04:31:30 +00:00
return 1;
2020-03-22 21:19:43 +00:00
} else {
2020-03-17 04:31:30 +00:00
return 0;
2020-03-22 21:19:43 +00:00
}
2020-03-17 04:31:30 +00:00
}
2020-03-22 21:19:43 +00:00
s32 func_8004356C(DynaPolyActor* dynaActor) {
if (dynaActor->unk_160 & 2) {
2020-03-17 04:31:30 +00:00
return 1;
2020-03-22 21:19:43 +00:00
} else {
2020-03-17 04:31:30 +00:00
return 0;
2020-03-22 21:19:43 +00:00
}
2020-03-17 04:31:30 +00:00
}
2020-03-22 21:19:43 +00:00
s32 func_80043590(DynaPolyActor* dynaActor) {
if (dynaActor->unk_160 & 4) {
2020-03-17 04:31:30 +00:00
return 1;
2020-03-22 21:19:43 +00:00
} else {
2020-03-17 04:31:30 +00:00
return 0;
2020-03-22 21:19:43 +00:00
}
2020-03-17 04:31:30 +00:00
}
2020-03-22 21:19:43 +00:00
s32 func_800435B4(DynaPolyActor* dynaActor) {
if (dynaActor->unk_160 & 8) {
2020-03-17 04:31:30 +00:00
return 1;
2020-03-22 21:19:43 +00:00
} else {
2020-03-17 04:31:30 +00:00
return 0;
2020-03-22 21:19:43 +00:00
}
2020-03-17 04:31:30 +00:00
}
#pragma GLOBAL_ASM("asm/non_matchings/code/code_80043480/func_800435D8.s")