mirror of
https://github.com/zeldaret/ss
synced 2026-05-27 08:08:07 -04:00
rebase fixes
This commit is contained in:
@@ -642,7 +642,7 @@ public:
|
||||
return mAttackDirection == ATTACK_JUMP_SLASH;
|
||||
}
|
||||
|
||||
s32 getSpecificAttackDirection() const {
|
||||
u16 getSpecificAttackDirection() const {
|
||||
return mSpecificAttackDirection;
|
||||
}
|
||||
|
||||
|
||||
@@ -874,8 +874,9 @@ bool dTgMassObjInstance::checkForHit(
|
||||
}
|
||||
hitPosition = link->mPosition;
|
||||
distance = mGroundHeight.distance(hitPosition);
|
||||
if (link->getSpecificAttackDirection() == 1 || link->getSpecificAttackDirection() == 0x10 ||
|
||||
link->getSpecificAttackDirection() == 0x100) {
|
||||
if ((s32)link->getSpecificAttackDirection() == dAcPy_c::ATTACK_DIRECTION_DOWN ||
|
||||
(s32)link->getSpecificAttackDirection() == dAcPy_c::ATTACK_DIRECTION_UP ||
|
||||
(s32)link->getSpecificAttackDirection() == dAcPy_c::ATTACK_DIRECTION_STAB) {
|
||||
if (distance < fVar20) {
|
||||
isNotCut = 0;
|
||||
} else {
|
||||
@@ -892,7 +893,8 @@ bool dTgMassObjInstance::checkForHit(
|
||||
hitPosition = dAcPy_c::GetLink()->getSwordPos();
|
||||
|
||||
distance = mGroundHeight.distance(hitPosition);
|
||||
if (link->getSpecificAttackDirection() != 2 && link->getSpecificAttackDirection() != 0x80) {
|
||||
if ((s32)link->getSpecificAttackDirection() != dAcPy_c::ATTACK_DIRECTION_DOWNRIGHT &&
|
||||
(s32)link->getSpecificAttackDirection() != dAcPy_c::ATTACK_DIRECTION_DOWNLEFT) {
|
||||
return true;
|
||||
}
|
||||
if (distance >= fVar21) {
|
||||
|
||||
Reference in New Issue
Block a user