mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-21 22:41:14 +00:00
Document flag for swinging bottle (#1272)
* Document flag for swinging bottle * Add bug, minor documentation to func_8084ECA4 * Update comments * Add newline to z64cutscene_commands.h * Review
This commit is contained in:
parent
826924afea
commit
be57b6bf4c
6 changed files with 19 additions and 15 deletions
|
@ -3923,7 +3923,7 @@ void BossGanon_LightBall_Update(Actor* thisx, PlayState* play2) {
|
|||
|
||||
switch (this->unk_1C2) {
|
||||
case 0:
|
||||
if ((player->stateFlags1 & PLAYER_STATE1_1) &&
|
||||
if ((player->stateFlags1 & PLAYER_STATE1_SWINGING_BOTTLE) &&
|
||||
(ABS((s16)(player->actor.shape.rot.y - (s16)(ganondorf->actor.yawTowardsPlayer + 0x8000))) <
|
||||
0x2000) &&
|
||||
(sqrtf(SQ(xDistFromLink) + SQ(yDistFromLink) + SQ(zDistFromLink)) <= 25.0f)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue