mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-23 07:21:19 +00:00
Fix misc 9 (#1183)
* Fix typo `tranform` -> `transform` * (may be controversial) `indexes` (noun) -> `indices`, both are correct but `indices` prevails in the repo currently, and seems prefered in technical contexts * Fixup one `@bug` * Fix typo `relfect` -> `reflect` * Rename and `@bug` `DemoTreLgt_OverrideLimbDraw` * Fixup `PLAYER_AP_` to `ARROW_` type conversion * `posModel` -> `modelPos` * `effSpawnPosModel` -> `effSpawnModelPos` * Gohma decay bug: Verified that timers do not prevent UB access * Reorder summation in a more meaningful way Co-authored-by: JoshDuMan <40190173+JoshDuMan@users.noreply.github.com>
This commit is contained in:
parent
04fb0ac1b1
commit
b9b40805f7
19 changed files with 83 additions and 78 deletions
|
@ -1448,7 +1448,7 @@ void EnMb_Update(Actor* thisx, GlobalContext* globalCtx) {
|
|||
void EnMb_PostLimbDraw(GlobalContext* globalCtx, s32 limbIndex, Gfx** dList, Vec3s* rot, void* thisx) {
|
||||
static Vec3f unused = { 1100.0f, -700.0f, 0.0f };
|
||||
static Vec3f feetPos = { 0.0f, 0.0f, 0.0f };
|
||||
static Vec3f effSpawnPosModel = { 0.0f, -8000.0f, 0.0f };
|
||||
static Vec3f effSpawnModelPos = { 0.0f, -8000.0f, 0.0f };
|
||||
static Vec3f zeroVec = { 0.0f, 0.0f, 0.0f };
|
||||
s32 bodyPart = -1;
|
||||
EnMb* this = (EnMb*)thisx;
|
||||
|
@ -1456,7 +1456,7 @@ void EnMb_PostLimbDraw(GlobalContext* globalCtx, s32 limbIndex, Gfx** dList, Vec
|
|||
|
||||
if (this->actor.params == ENMB_TYPE_CLUB) {
|
||||
if (limbIndex == ENMB_LIMB_LHAND) {
|
||||
Matrix_MultVec3f(&effSpawnPosModel, &this->effSpawnPos);
|
||||
Matrix_MultVec3f(&effSpawnModelPos, &this->effSpawnPos);
|
||||
if (this->attack > ENMB_ATTACK_NONE) {
|
||||
EnMb_ClubUpdateAttackCollider(&this->actor, globalCtx);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue