mirror of
https://github.com/zeldaret/tww.git
synced 2026-09-07 02:59:59 -04:00
Replace hardcoded angle conversion with cM_deg2s in MENU_CLOTH_TYPE_0 logic for improved clarity and maintainability.
This commit is contained in:
@@ -178,8 +178,7 @@ void dMCloth_c::cloth_init() {
|
||||
|
||||
switch (mClothType) {
|
||||
case MENU_CLOTH_TYPE_0: {
|
||||
const f32 r = cM_rndFX(45.0f);
|
||||
init_angle_z += (s16)((r + 90.0f) * 182.04445f);
|
||||
init_angle_z += cM_deg2s(cM_rndFX(45.0f) + 90.0f);
|
||||
mScale = HIO_CHILD.scale;
|
||||
mRot.set(0, 0, init_angle_z);
|
||||
s32 n = HIO_CHILD.wavePreSteps;
|
||||
|
||||
Reference in New Issue
Block a user