minor 10010510 improvement

This commit is contained in:
jonschz 2024-04-30 20:46:24 +02:00
parent 114b31a76d
commit 397677a067

View File

@ -147,13 +147,13 @@ void SkateBoard::FUN_10010510()
PlayMusic(JukeboxScript::c_BeachBlvd_Music); PlayMusic(JukeboxScript::c_BeachBlvd_Music);
if (m_act1state->m_unk0x022 == '\0') { if (m_act1state->m_unk0x022 == '\0') {
m_act1state->m_unk0x022 = 1; m_act1state->m_unk0x022 = 1;
MxMatrix x = MxMatrix(CurrentActor()->GetROI()->GetLocal2World()); MxMatrix matrix = MxMatrix(CurrentActor()->GetROI()->GetLocal2World());
float xs = x[2][0] * 2.5; float x = 2.5 * matrix[2][0];
float y = x[2][1] + 0.2; float z = 2.5 * matrix[2][2];
float z = x[2][2] * 2.5; float y = 0.2 + matrix[2][1];
x.TranslateBy(&xs, &y, &z); matrix.TranslateBy(&x, &y, &z);
AnimationManager() AnimationManager()
->FUN_10060dc0(IsleScript::c_sns008in_RunAnim, &x, '\x01', '\0', NULL, 0, TRUE, TRUE, '\x01'); ->FUN_10060dc0(IsleScript::c_sns008in_RunAnim, &matrix, '\x01', '\0', NULL, 0, TRUE, TRUE, '\x01');
} }
} }
return; return;