Skip to content

Commit

Permalink
Upgrade 4.26
Browse files Browse the repository at this point in the history
Added "PhysicsCore" to .build.cs
Updated source to fix-up any deprecation warnings.
  • Loading branch information
tomlooman committed Jun 30, 2021
1 parent 5810b96 commit 95abaaa
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CoopGame.uproject
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"FileVersion": 3,
"EngineAssociation": "4.25",
"EngineAssociation": "4.26",
"Category": "",
"Description": "",
"Modules": [
Expand Down
2 changes: 1 addition & 1 deletion Source/CoopGame/CoopGame.Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public CoopGame(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;

PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "NavigationSystem" });
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "NavigationSystem", "PhysicsCore" });

PrivateDependencyModuleNames.AddRange(new string[] { });

Expand Down
6 changes: 3 additions & 3 deletions Source/CoopGame/Private/SGameMode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "SGameState.h"
#include "SPlayerState.h"
#include "TimerManager.h"

#include "EngineUtils.h"


ASGameMode::ASGameMode()
Expand Down Expand Up @@ -61,9 +61,9 @@ void ASGameMode::CheckWaveState()

bool bIsAnyBotAlive = false;

for (FConstPawnIterator It = GetWorld()->GetPawnIterator(); It; ++It)
for (TActorIterator<APawn> It(GetWorld()); It; ++It)
{
APawn* TestPawn = It->Get();
APawn* TestPawn = *It;
if (TestPawn == nullptr || TestPawn->IsPlayerControlled())
{
continue;
Expand Down
2 changes: 1 addition & 1 deletion Source/CoopGame/Private/SPlayerState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@

void ASPlayerState::AddScore(float ScoreDelta)
{
Score += ScoreDelta;
SetScore(GetScore() + ScoreDelta);
}
2 changes: 1 addition & 1 deletion Source/CoopGame/Private/SWeapon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ void ASWeapon::PlayFireEffects(FVector TraceEnd)
APlayerController* PC = Cast<APlayerController>(MyOwner->GetController());
if (PC)
{
PC->ClientPlayCameraShake(FireCamShake);
PC->ClientStartCameraShake(FireCamShake);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Source/CoopGame/Public/SWeapon.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class COOPGAME_API ASWeapon : public AActor
UParticleSystem* TracerEffect;

UPROPERTY(EditDefaultsOnly, Category = "Weapon")
TSubclassOf<UCameraShake> FireCamShake;
TSubclassOf<UCameraShakeBase> FireCamShake;

UPROPERTY(EditDefaultsOnly, Category = "Weapon")
float BaseDamage;
Expand Down

0 comments on commit 95abaaa

Please sign in to comment.