Minor codestyle fixes

This commit is contained in:
Wojtek Figat
2024-07-25 16:50:16 +02:00
parent 1e43b031ba
commit d14a4f1f66
2 changed files with 3 additions and 5 deletions

View File

@@ -83,13 +83,13 @@ public:
/// Checks if knowledge has a given goal (exact type match without base class check).
/// </summary>
/// <param name="type">The goal type.</param>
/// <returns>True if has a given goal, otherwise false.</returns>
/// <returns>True if knowledge has a given goal, otherwise false.</returns>
API_FUNCTION() bool HasGoal(ScriptingTypeHandle type) const;
/// <summary>
/// Checks if knowledge has a given goal (exact type match without base class check).
/// </summary>
/// <returns>True if has a given goal, otherwise false.</returns>
/// <returns>True if knowledge has a given goal, otherwise false.</returns>
template<typename T>
FORCE_INLINE bool HasGoal()
{

View File

@@ -140,7 +140,7 @@ void BehaviorTreeNode::Deserialize(DeserializeStream& stream, ISerializeModifier
{
SerializableScriptingObject::Deserialize(stream, modifier);
Name.Clear(); // Missing Name is assumes as unnamed node
Name.Clear(); // Missing Name is assumed as unnamed node
DESERIALIZE(Name);
}
@@ -197,7 +197,6 @@ BehaviorUpdateResult BehaviorTreeSequenceNode::Update(const BehaviorUpdateContex
return BehaviorUpdateResult::Failed;
auto result = Children[state->CurrentChildIndex]->InvokeUpdate(context);
switch (result)
{
case BehaviorUpdateResult::Success:
@@ -232,7 +231,6 @@ BehaviorUpdateResult BehaviorTreeSelectorNode::Update(const BehaviorUpdateContex
return BehaviorUpdateResult::Failed;
auto result = Children[state->CurrentChildIndex]->InvokeUpdate(context);
switch (result)
{
case BehaviorUpdateResult::Success: