Skip to content

Commit

Permalink
Code format - (Clang-format)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 23, 2023
1 parent 0342b55 commit 6a62013
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/creatures/creature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,7 @@ void Creature::goToFollowCreature() {

std::forward_list<Direction> list;
if (self->hasFollowPath = self->getPathTo(targetPos, list, fpp)) {
g_dispatcher().addEvent([self, list = std::move(list)] { self->startAutoWalk(list); }, "Creature::goToFollowCreature");
g_dispatcher().addEvent([self, list = std::move(list)] { self->startAutoWalk(list); }, "Creature::goToFollowCreature");
}
});

Expand Down Expand Up @@ -1303,7 +1303,7 @@ void Creature::removeCondition(ConditionType_t type) {
continue;
}

it = conditions.erase(it);
it = conditions.erase(it);

condition->endCondition(getCreature());

Expand Down Expand Up @@ -1332,7 +1332,7 @@ void Creature::removeCondition(ConditionType_t conditionType, ConditionId_t cond
}
}

it = conditions.erase(it);
it = conditions.erase(it);

condition->endCondition(getCreature());

Expand All @@ -1359,7 +1359,7 @@ void Creature::removeCondition(std::shared_ptr<Condition> condition) {
return;
}

conditions.erase(it);
conditions.erase(it);

condition->endCondition(getCreature());
onEndCondition(condition->getType());
Expand Down Expand Up @@ -1400,7 +1400,7 @@ void Creature::executeConditions(uint32_t interval) {
if (!condition->executeCondition(getCreature(), interval)) {
ConditionType_t type = condition->getType();

it = conditions.erase(it);
it = conditions.erase(it);

condition->endCondition(getCreature());

Expand Down

0 comments on commit 6a62013

Please sign in to comment.