Refactor MENU_CLOTH_TYPE_2 logic: replace hardcoded rotation calculation with cM_deg2s for clarity and maintainability.

This commit is contained in:
Briggs Baltzell
2026-03-04 17:04:10 -06:00
parent b5240d4bdb
commit ac76b6e26d
+1 -2
View File
@@ -193,9 +193,8 @@ void dMCloth_c::cloth_init() {
} break;
case MENU_CLOTH_TYPE_2: {
mScale = HIO_CHILD.scale;
const f32 r = cM_rndFX(20.0f);
mRot = HIO_CHILD.rot;
mRot.z += (s16)(r * 182.04445f);
mRot.z += cM_deg2s(cM_rndFX(20.0f));
s32 n = HIO_CHILD.wavePreSteps;
while (n--) {
cloth_move_sin();