Decompile skySetTransitionFrac

This commit is contained in:
Ryan Dwyer
2021-06-14 22:08:18 +10:00
parent 88533fc7e5
commit e26100b7fd
9 changed files with 78 additions and 338 deletions
+7 -1
View File
@@ -2193,7 +2193,13 @@
mkshort(0x00f1), \
label,
#define cmd00f2 \
/**
* Switch to the stage's alternative sky/fog settings. The switch is instant.
*
* The stage must use a type 1 sky (in the g_SkiesType1 table) and the
* alternative sky must be placed immediately after it.
*/
#define switch_to_alt_sky \
mkshort(0x00f2),
/**
+1 -1
View File
@@ -243,7 +243,7 @@
/*0x00ef*/ bool aiIfObjInRoom(void);
/*0x00f0*/ bool ai00f0(void);
/*0x00f1*/ bool aiIfAttacking(void);
/*0x00f2*/ bool ai00f2(void);
/*0x00f2*/ bool aiSwitchToAltSky(void);
/*0x00f3*/ bool aiChrSetInvincible(void);
/*0x00f4*/ bool ai00f4(void);
/*0x00f5*/ bool ai00f5(void);
+4 -4
View File
@@ -7,11 +7,11 @@
struct var80081058 *func0f1657cc(void);
f32 func0f1657e4(void);
void func0f1657f8(void);
void func0f16598c(struct smallsky *sky);
void func0f165c4c(struct sky *sky);
void skyApplyType1(struct skytype1 *sky);
void skyApplyType2(struct skytype2 *sky);
void skySetStageNum(s32 stagenum);
void func0f165eec(s32 stagenum, bool arg1);
void func0f1660a4(f32 arg0);
void skyChooseAndApply(s32 stagenum, bool arg1);
void skySetTransitionFrac(f32 arg0);
Gfx *func0f1664a0(Gfx *gdl, bool arg1);
Gfx *gfxConsiderDisableFog(Gfx *gdl);
bool func0f1666f8(struct coord *pos, f32 arg1);
+2 -2
View File
@@ -3296,7 +3296,7 @@ struct sun {
u16 orb_size;
};
struct smallsky {
struct skytype1 {
/*0x00*/ s16 stage;
/*0x02*/ s16 near;
/*0x04*/ s16 far;
@@ -3326,7 +3326,7 @@ struct smallsky {
/*0x28*/ u8 unk28;
};
struct sky {
struct skytype2 {
/*0x00*/ s32 stage;
/*0x04*/ s16 near;
/*0x06*/ s16 far;