Skip to content

Commit

Permalink
Updated to work with latest ALS-Refactored(5152455) and fix to compil…
Browse files Browse the repository at this point in the history
…ation error in issue #33 and discussed in #32 by @AcTiViSioN911
  • Loading branch information
colorindarkness committed Mar 30, 2023
1 parent e471c11 commit caf2a53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Source/ALSXT/Private/ALSXTAnimationInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,5 @@ bool UALSXTAnimationInstance::IsRotateInPlaceAllowed()

bool UALSXTAnimationInstance::IsTurnInPlaceAllowed()
{
return (ALSXTCharacter->GetRotationMode() == AlsRotationModeTags::LookingDirection && ALSXTCharacter->GetViewMode() != AlsViewModeTags::FirstPerson);
return (ALSXTCharacter->GetRotationMode() == AlsRotationModeTags::ViewDirection && ALSXTCharacter->GetViewMode() != AlsViewModeTags::FirstPerson);
}
8 changes: 4 additions & 4 deletions Source/ALSXT/Private/ALSXTCharacter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,12 +325,12 @@ void AALSXTCharacter::InputAim(const FInputActionValue& ActionValue)
}
else
{
SetDesiredRotationMode(AlsRotationModeTags::LookingDirection);
SetDesiredRotationMode(AlsRotationModeTags::ViewDirection);
}
}
else
{
SetDesiredRotationMode(AlsRotationModeTags::LookingDirection);
SetDesiredRotationMode(AlsRotationModeTags::ViewDirection);
}
SetDesiredAiming(ActionValue.Get<bool>());
}
Expand All @@ -357,7 +357,7 @@ void AALSXTCharacter::InputRoll()
void AALSXTCharacter::InputRotationMode()
{
SetDesiredRotationMode(GetDesiredRotationMode() == AlsRotationModeTags::VelocityDirection
? AlsRotationModeTags::LookingDirection
? AlsRotationModeTags::ViewDirection
: AlsRotationModeTags::VelocityDirection);
}

Expand Down Expand Up @@ -870,7 +870,7 @@ void AALSXTCharacter::SetDesiredCombatStance(const FGameplayTag& NewCombatStance
}
else
{
SetDesiredRotationMode(AlsRotationModeTags::LookingDirection);
SetDesiredRotationMode(AlsRotationModeTags::ViewDirection);
}
}
else if (GetLocalRole() == ROLE_Authority)
Expand Down

0 comments on commit caf2a53

Please sign in to comment.