mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-22 23:11:20 +00:00
Document/fix Player.bodyPartsPos
usage (#1141)
* Document/fix `Player#bodyPartsPos` usage * `distFromLinksHead` -> `distFromPlayerHat` * Comment on `bodyPartsPos[-1]` * Run formatter * Use `PLAYER_BODYPART_MAX` more * Use hex for `PlayerBodyPart` enum comments
This commit is contained in:
parent
c73053db6f
commit
5cadc5df8a
18 changed files with 166 additions and 120 deletions
|
@ -59,8 +59,8 @@ static u8 D_80AFA15C[] = {
|
|||
2, 2, 2, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, 0, 3,
|
||||
};
|
||||
|
||||
static s8 D_80AFA16C[] = {
|
||||
2, 9, 10, 11, 12, 13, 14, 0, 15, -1, 3, 4, 5, 6, 7, 8, -1, 1, 0, 0,
|
||||
static s8 D_80AFA16C[PLAYER_BODYPART_MAX] = {
|
||||
2, 9, 10, 11, 12, 13, 14, 0, 15, -1, 3, 4, 5, 6, 7, 8, -1, 1,
|
||||
};
|
||||
|
||||
static Vec3f D_80AFA180[] = {
|
||||
|
@ -266,7 +266,7 @@ void func_80AF95C4(EnSda* this, u8* shadowTexture, Player* player, GlobalContext
|
|||
}
|
||||
}
|
||||
Matrix_RotateX((BREG(50) + 70) / 100.0f, MTXMODE_NEW);
|
||||
for (i = 0; i < 18; i++) {
|
||||
for (i = 0; i < PLAYER_BODYPART_MAX; i++) {
|
||||
if (D_80AFA16C[i] >= 0) {
|
||||
D_80AFA660[D_80AFA16C[i]] = player->bodyPartsPos[i];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue