Skip to content

Commit

Permalink
fix: some compile issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Panakotta00 committed Oct 26, 2024
1 parent bc6ba97 commit bdf95d0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 6 additions & 1 deletion Source/FicsItLogLibrary/Private/FILLogContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

UFILLogContainer::UFILLogContainer() {
SetIsReplicatedByDefault(true);
PrimaryComponentTick.bStartWithTickEnabled = true;
}

void UFILLogContainer::BeginPlay() {
Expand All @@ -15,7 +16,11 @@ void UFILLogContainer::BeginPlay() {
}
}

void UFILLogContainer::Tick() {
void UFILLogContainer::TickComponent(float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) {
Super::TickComponent(DeltaTime, TickType, ThisTickFunction);

if (!GetOwner()->HasAuthority()) return;

FScopeLock ScopeLock(&LogEntriesToAddMutex);
if (!LogEntriesToAdd.IsEmpty()) {
TArray<FFILEntry> Chunk(LogEntriesToAdd.GetData(), FMath::Min(10, LogEntriesToAdd.Num()));
Expand Down
4 changes: 2 additions & 2 deletions Source/FicsItLogLibrary/Public/FILLogContainer.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "CoreMinimal.h"
#include "FILLogEntry.h"
#include "FGSaveInterface.h"
#include "Components/ActorComponent.h"
#include "FILLogContainer.generated.h"


Expand All @@ -22,8 +23,7 @@ class FICSITLOGLIBRARY_API UFILLogContainer : public UActorComponent, public IFG
virtual bool ShouldSave_Implementation() const override { return true; }
// End IFGSaveInterface

UFUNCTION()
void Tick();
virtual void TickComponent(float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;

UFUNCTION(BlueprintCallable)
void PushLogEntry(TEnumAsByte<EFILLogVerbosity> Verbosity, const FString& Content);
Expand Down
2 changes: 0 additions & 2 deletions Source/FicsItNetworksComputer/Private/FINComputerCase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,6 @@ void AFINComputerCase::TickActor(float DeltaTime, ELevelTick TickType, FActorTic
Super::TickActor(DeltaTime, TickType, ThisTickFunction);

if (HasAuthority()) {
Log->Tick();

if (Kernel) {
Kernel->HandleFutures();
if (Kernel->GetState() != InternalKernelState) {
Expand Down

0 comments on commit bdf95d0

Please sign in to comment.