diff options
| author | MegaMech <MegaMech@users.noreply.github.com> | 2022-05-19 02:39:18 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-19 01:39:18 -0700 |
| commit | bcf65f3883c6982211c39b0f687cf1462cbacd02 (patch) | |
| tree | 7ddac309f1411da0da1427d8c8345e02fe7498dc /include | |
| parent | 63c4f4834072eb745a30c9fd4d313e9e2efb1c4c (diff) | |
import random_u16 to sm64, match random_s32, and match actor func (#203)
* import random_u16 and atans from sm64
* rand math decomp
* Match func_80298AC0
Diffstat (limited to 'include')
| -rw-r--r-- | include/actor_types.h | 8 | ||||
| -rw-r--r-- | include/functions.h | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/include/actor_types.h b/include/actor_types.h index c059a7b7c..4af3c913d 100644 --- a/include/actor_types.h +++ b/include/actor_types.h @@ -123,6 +123,14 @@ struct ActorSpawnData { /* 0x06 */ u16 someId; // Usually populated, but not necessarily used by all actors types }; +// Required for func_80298AC0 due to diff size. +// members unverified. data located at D_06013F78 +struct UnkActorSpawnData { + /* 0x00 */ Vec3s pos; + /* 0x06 */ u16 someId; // Usually populated, but not necessarily used by all actors types + /* 0x08 */ u16 unk8; +}; + struct YoshiValleyEgg { /* 0x00 */ s16 type; /* 0x02 */ s16 flags; diff --git a/include/functions.h b/include/functions.h index 52f164cac..f4558e4e2 100644 --- a/include/functions.h +++ b/include/functions.h @@ -3,7 +3,7 @@ #include "common_structs.h" -s32 random_int(s32); +s32 random_int(u16); void mio0decode(u8* arg0, u8* arg1); void func_8000F2DC(void); |
