mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-28 08:27:22 +00:00
invert if else block logic patter
Since setting up the comp will be longer han just adding the path will make the readability flow better
This commit is contained in:
parent
2a13d021ee
commit
54e09e3e30
@ -699,10 +699,10 @@ void Entity::Initialize() {
|
||||
// else if we are a movement path
|
||||
} else if (path->pathType == PathType::Movement) {
|
||||
auto movementAIcomp = GetComponent<MovementAIComponent>();
|
||||
if (!movementAIcomp){
|
||||
// TODO: create movementAIcomp and set path
|
||||
} else {
|
||||
if (movementAIcomp){
|
||||
// TODO: set path in existing movementAIComp
|
||||
} else {
|
||||
// TODO: create movementAIcomp and set path
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user