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 Nov 2, 2023
1 parent 7f8a8ca commit 02e57aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/creatures/creature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1420,7 +1420,7 @@ uint16_t Creature::getStepDuration(Direction dir) {
auto duration = walk.duration;
if ((dir & DIRECTION_DIAGONAL_MASK) != 0) {
duration *= WALK_DIAGONAL_EXTRA_COST;
}else if (const auto &monster = getMonster()) {
} else if (const auto &monster = getMonster()) {
if (monster->isTargetNearby() && !monster->isFleeing() && !monster->getMaster()) {
duration *= WALK_TARGET_NEARBY_EXTRA_COST;
}
Expand Down

0 comments on commit 02e57aa

Please sign in to comment.