Scene_CommandWindSettings

This commit is contained in:
Derek Hensley
2026-08-14 06:58:20 -07:00
parent 697cc71f8a
commit 570fbda38a
2 changed files with 11 additions and 11 deletions
+4 -4
View File
@@ -58,10 +58,10 @@ typedef struct {
/* 0x0 */ u8 code;
/* 0x1 */ u8 data1;
/* 0x2 */ UNK_TYPE1 pad2[2];
/* 0x4 */ s8 west;
/* 0x5 */ s8 vertical;
/* 0x6 */ s8 south;
/* 0x7 */ u8 clothIntensity;
/* 0x4 */ s8 x;
/* 0x5 */ s8 y;
/* 0x6 */ s8 z;
/* 0x7 */ u8 speed;
} SCmdWindSettings; // size = 0x8
typedef struct {
+7 -7
View File
@@ -433,14 +433,14 @@ void Scene_CommandTimeSettings(PlayState* play, SceneCmd* cmd) {
// SceneTableEntry Header Command 0x05: Wind Settings
void Scene_CommandWindSettings(PlayState* play, SceneCmd* cmd) {
s8 temp1 = cmd->windSettings.west;
s8 temp2 = cmd->windSettings.vertical;
s8 temp3 = cmd->windSettings.south;
s8 x = cmd->windSettings.x;
s8 y = cmd->windSettings.y;
s8 z = cmd->windSettings.z;
play->envCtx.windDirection.x = temp1;
play->envCtx.windDirection.y = temp2;
play->envCtx.windDirection.z = temp3;
play->envCtx.windSpeed = cmd->windSettings.clothIntensity;
play->envCtx.windDirection.x = x;
play->envCtx.windDirection.y = y;
play->envCtx.windDirection.z = z;
play->envCtx.windSpeed = cmd->windSettings.speed;
}
// SceneTableEntry Header Command 0x13: Exit List