diff options
| author | Maciek Baron <1668712+MaciekBaron@users.noreply.github.com> | 2025-07-03 13:35:42 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-03 06:35:42 -0600 |
| commit | 99689a3f70d8cb38178f92b87ecdcdbbdb200429 (patch) | |
| tree | 031bbf96ac4c1d17b2f6213b1c6f271a71bb8e2d /src/engine | |
| parent | 7937896598f3df46eb78c158bde787bc4f12ad7f (diff) | |
Document player alpha (#396)
* Document player alpha
* Fix typo
* Document further alpha things
* Document movement
* Fix indentation
Diffstat (limited to 'src/engine')
| -rw-r--r-- | src/engine/objects/Lakitu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/objects/Lakitu.cpp b/src/engine/objects/Lakitu.cpp index 28159b7b3..8088e89c8 100644 --- a/src/engine/objects/Lakitu.cpp +++ b/src/engine/objects/Lakitu.cpp @@ -393,7 +393,7 @@ void OLakitu::func_80079860(s32 playerId) { void OLakitu::func_8007993C(s32 objectIndex, Player* player) { if (player->unk_0CA & 4) { func_800722A4(objectIndex, 2); - gObjectList[objectIndex].primAlpha = player->unk_0C6; + gObjectList[objectIndex].primAlpha = player->alpha; return; } func_800722CC(objectIndex, 2); @@ -784,7 +784,7 @@ void OLakitu::func_8007A778(s32 objectIndex) { Player* player = &gPlayers[_playerId]; Camera* camera = &cameras[_playerId]; u16 rot = 0x8000 - camera->rot[1]; - + gObjectList[objectIndex].pos[0] = (player->pos[0] + (coss(rot) * (gObjectList[objectIndex].origin_pos[0] + gObjectList[objectIndex].offset[0]))) - |
