From e15a7076c4811b4b4df9fe0b6a05320bd6f3591b Mon Sep 17 00:00:00 2001 From: MH261677 Date: Mon, 16 Jan 2023 21:25:54 +0000 Subject: [PATCH] Updated TempCharacter.cpp Fixed the tracedistance not defaulting back once the player exits the shop --- Source/the_twilight_abyss/PlayerTemp/TempCharacter.cpp | 1 + Source/the_twilight_abyss/PlayerTemp/TempCharacter.h | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/the_twilight_abyss/PlayerTemp/TempCharacter.cpp b/Source/the_twilight_abyss/PlayerTemp/TempCharacter.cpp index 2bec2af..813cc2e 100644 --- a/Source/the_twilight_abyss/PlayerTemp/TempCharacter.cpp +++ b/Source/the_twilight_abyss/PlayerTemp/TempCharacter.cpp @@ -150,6 +150,7 @@ void ATempCharacter::InputEnabler() GetWorld()->GetFirstPlayerController()->bShowMouseCursor = false; GetWorld()->GetFirstPlayerController()->bEnableClickEvents = false; GetWorld()->GetFirstPlayerController()->bEnableMouseOverEvents = false; + TraceDistance = 200; ThisCamera = Cast(this->FindComponentByClass()); if (ThisCamera == nullptr) { diff --git a/Source/the_twilight_abyss/PlayerTemp/TempCharacter.h b/Source/the_twilight_abyss/PlayerTemp/TempCharacter.h index 4cf0350..4300689 100644 --- a/Source/the_twilight_abyss/PlayerTemp/TempCharacter.h +++ b/Source/the_twilight_abyss/PlayerTemp/TempCharacter.h @@ -69,6 +69,7 @@ public: int OriginalCameraFOV; - UFUNCTION(BlueprintCallable, Category= "Items") - void BuyItem(); + UFUNCTION(BlueprintCallable, Category= "Items") + void BuyItem(); + };