mirror of
https://github.com/zeldaret/tww.git
synced 2026-07-08 05:40:36 -04:00
Match dMCloth_c::cloth_move implementation and update type definitions for field_0xa and field_0x34 to s16.
This commit is contained in:
@@ -50,7 +50,7 @@ public:
|
||||
/* 0x0004 */ u16 field_0x4;
|
||||
/* 0x0006 */ u8 field_0x6[0x08 - 0x06];
|
||||
/* 0x0008 */ u16 field_0x8;
|
||||
/* 0x000A */ u16 field_0xa;
|
||||
/* 0x000A */ s16 field_0xa;
|
||||
/* 0x000C */ u8 field_0xc;
|
||||
/* 0x000D */ u8 field_0xd;
|
||||
/* 0x000E */ u8 field_0xe[0x44 - 0x0E];
|
||||
@@ -91,7 +91,7 @@ public:
|
||||
/* 0x002e */ s16 field_0x2e;
|
||||
/* 0x0030 */ s16 field_0x30;
|
||||
/* 0x0032 */ u16 field_0x32;
|
||||
/* 0x0034 */ u16 field_0x34;
|
||||
/* 0x0034 */ s16 field_0x34;
|
||||
/* 0x0036 */ s16 field_0x36;
|
||||
/* 0x0038 */ u16 field_0x38;
|
||||
/* 0x003a */ u16 field_0x3a;
|
||||
|
||||
+17
-1
@@ -429,7 +429,23 @@ void dMCloth_c::cloth_move_simple() {
|
||||
|
||||
/* 8019BCF4-8019BDB8 .text cloth_move__9dMCloth_cFv */
|
||||
void dMCloth_c::cloth_move() {
|
||||
/* Nonmatching */
|
||||
switch (mClothType) {
|
||||
case 0:
|
||||
case 2: {
|
||||
if (field_0xa < l_HIO.mChildren[mClothType].field_0x34) {
|
||||
cloth_move_sin();
|
||||
field_0xa++;
|
||||
} else {
|
||||
cloth_move_simple();
|
||||
}
|
||||
} break;
|
||||
case 1: {
|
||||
if (field_0xa < l_HIO.mChildren[mClothType].field_0x34) {
|
||||
field_0xa++;
|
||||
}
|
||||
cloth_move_sin();
|
||||
} break;
|
||||
}
|
||||
}
|
||||
|
||||
/* 8019BDB8-8019BDC0 .text dMenu_ClothCreate__FPv */
|
||||
|
||||
Reference in New Issue
Block a user