mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-24 07:51:48 +00:00
Fix misc 17 (#1392)
* Some cleanup on bgcheck waterbox y funcs
* Fix some typo/spelling
* EnFz_ApplyDamage match fixup
* Turn another sus construction into a switch
* Fixup comment on restoring MS as adult
* "doesnt, isnt" -> "doesn't, isn't"
* Hunt down whitespace at end of lines
* Format (clang-format does not like figs bug comment on bongo cutscene unskip sadge)
* Viewport z scale/translation: `0x1FF` -> `G_MAXZ/2` (see proman "9.7 Mixing CPU and SP Addresses", "12.7.6 Depth Source")
* static symbols: g -> s prefix
* Link young/old -> child/adult
* Fixups
* Get rid of signed vs unsigned comparison warning by changing room temps to s32
* waterbox search funcs consistency
* Revert "waterbox search funcs consistency"
This reverts commit 8f386e038f
.
* `curWaterBox` -> `waterBox`
This commit is contained in:
parent
c3dc299448
commit
22b78f169f
27 changed files with 118 additions and 114 deletions
|
@ -579,8 +579,8 @@ s32 EnSkj_CollisionCheck(EnSkj* this, PlayState* play) {
|
|||
|
||||
if (!((this->unk_2D3 == 0) || (D_80B01EA0 != 0) || !(this->collider.base.acFlags & AC_HIT))) {
|
||||
this->collider.base.acFlags &= ~AC_HIT;
|
||||
if (this->actor.colChkInfo.damageEffect != 0) {
|
||||
if (this->actor.colChkInfo.damageEffect == 0xF) {
|
||||
switch (this->actor.colChkInfo.damageEffect) {
|
||||
case 0xF:
|
||||
effectPos.x = this->collider.info.bumper.hitPos.x;
|
||||
effectPos.y = this->collider.info.bumper.hitPos.y;
|
||||
effectPos.z = this->collider.info.bumper.hitPos.z;
|
||||
|
@ -612,11 +612,14 @@ s32 EnSkj_CollisionCheck(EnSkj* this, PlayState* play) {
|
|||
}
|
||||
EnSkj_SetupDie(this);
|
||||
return 1;
|
||||
}
|
||||
} else {
|
||||
this->backflipFlag = 1;
|
||||
EnSkj_Backflip(this);
|
||||
return 1;
|
||||
|
||||
case 0:
|
||||
this->backflipFlag = 1;
|
||||
EnSkj_Backflip(this);
|
||||
return 1;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue