Fix bad refactor

This commit is contained in:
Arnaud Jamin
2024-01-03 19:20:12 -05:00
parent 11022f7311
commit 0f130f7dff
4 changed files with 45 additions and 45 deletions
+41 -41
View File
@@ -2,53 +2,53 @@ using UnrealBuildTool;
public class CogEngine : ModuleRules
{
public CogEngine(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
PublicIncludePaths.AddRange(
new string[]
{
}
);
PrivateIncludePaths.AddRange(
new string[]
{
}
);
PublicDependencyModuleNames.AddRange(
new string[]
{
public CogEngine(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
PublicIncludePaths.AddRange(
new string[]
{
}
);
PrivateIncludePaths.AddRange(
new string[]
{
}
);
PublicDependencyModuleNames.AddRange(
new string[]
{
"CogDebug",
}
);
PrivateDependencyModuleNames.AddRange(
new string[]
{
"CogCommon",
);
PrivateDependencyModuleNames.AddRange(
new string[]
{
"CogCommon",
"CogImgui",
"CogWindow",
"Core",
"Core",
"CoreUObject",
"Engine",
"Engine",
"InputCore",
"NetCore",
"Slate",
"SlateCore",
"Slate",
"SlateCore",
}
);
DynamicallyLoadedModuleNames.AddRange(
new string[]
{
}
);
}
);
DynamicallyLoadedModuleNames.AddRange(
new string[]
{
}
);
}
}
@@ -82,7 +82,7 @@ void FCogEngineWindow_Plots::RenderMenu()
{
if (ImGui::BeginMenu("Options"))
{
if (ImGui::MenuItem("Clear Settings"))
if (ImGui::MenuItem("Clear Data"))
{
FCogDebugPlot::Clear();
}
+1 -1
View File
@@ -677,7 +677,7 @@ void ACogSampleCharacter::OnGhostTagNewOrRemoved(const FGameplayTag InTag, int32
void ACogSampleCharacter::OnScaleAttributeChanged(const FOnAttributeChangeData& Data)
{
//----------------------------------------------------------------------------------
// 'Settings.NewValue' is not used because it seems to only corresponds to the changes
// 'Data.NewValue' is not used because it seems to only corresponds to the changes
// of the BaseValue which do not account for the temporary modifiers.
//----------------------------------------------------------------------------------
@@ -197,8 +197,8 @@ bool UCogSampleGameplayAbility::IsCostGameplayEffectIsZero(const UGameplayEffect
const float CostValue = ModSpec.GetEvaluatedMagnitude();
//----------------------------------------------------------------------------------------------
// The Cost in the Settings is positive, but UCogSampleModifierCalculation_Cost negates it.
// Therefore a cost less than zero is an actual cost, and a cost of 0 or greater can be ignored
// The Cost in the Data is positive, but UCogSampleModifierCalculation_Cost negates it.
// Therefore, a cost less than zero is an actual cost, and a cost of 0 or greater can be ignored
//----------------------------------------------------------------------------------------------
if (CostValue < 0)
{