mirror of
https://github.com/Ed94/Cog.git
synced 2026-06-13 08:02:23 -07:00
Updated to 5.3.x, renamed interface function, and more
In CogSampleSpawnPredictionComponent.cpp, lines 299 through 302 have return statements of FColor::FColor, these have been updated to a single FColor return statement In CogSampleTargetableInterface.h, the GetTargetLocation function does not compile against Linux. Reason being that it interferes with built in functions that share the same name (notably within the AIController class). This has been changed to GetTargetActorLocation to maintain a similar name. Recommend adding comments when possible. Additionaly, the sample project and the editor have had their IncludeOrderVersion updated to 5.2. This was done to clear the warning listing that 5.1 will be deprecated in the next major version release. The project compiles against Windows and Linux (likely other platforms too, unable to check) Happy to help! :)
This commit is contained in:
@@ -296,10 +296,10 @@ FColor UCogSampleSpawnPredictionComponent::GetRoleColor() const
|
||||
{
|
||||
switch (Role)
|
||||
{
|
||||
case ECogSampleSpawnPredictionRole::Server: return FColor::FColor(255, 0, 0, 255);
|
||||
case ECogSampleSpawnPredictionRole::Predicted: return FColor::FColor(255, 255, 0, 255);
|
||||
case ECogSampleSpawnPredictionRole::Replicated: return FColor::FColor(128, 128, 0, 255);
|
||||
case ECogSampleSpawnPredictionRole::Remote: return FColor::FColor(255, 0, 255, 255);
|
||||
case ECogSampleSpawnPredictionRole::Server: return FColor(255, 0, 0, 255);
|
||||
case ECogSampleSpawnPredictionRole::Predicted: return FColor(255, 255, 0, 255);
|
||||
case ECogSampleSpawnPredictionRole::Replicated: return FColor(128, 128, 0, 255);
|
||||
case ECogSampleSpawnPredictionRole::Remote: return FColor(255, 0, 255, 255);
|
||||
}
|
||||
|
||||
return FColor(128, 128, 128, 255);
|
||||
|
||||
Reference in New Issue
Block a user