From c0fe952620df48935404b0fb457f7dff77ebf331 Mon Sep 17 00:00:00 2001 From: Anton Simakov <67688115+GuardianDll@users.noreply.github.com> Date: Mon, 2 Sep 2024 14:31:50 +0200 Subject: [PATCH] Update src/monmove.cpp Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- src/monmove.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/monmove.cpp b/src/monmove.cpp index 455066b56b19b..03633109450af 100644 --- a/src/monmove.cpp +++ b/src/monmove.cpp @@ -416,7 +416,8 @@ void monster::anger_cub_threatened( monster_plan &mon_plan ) } for( monster &tmp : g->all_monsters() ) { - if( type->baby_monster == tmp.type->id || MonsterGroupManager::IsMonsterInGroup( type->baby_monster_group, tmp.type ) ) { + if( type->baby_monster == tmp.type->id || + MonsterGroupManager::IsMonsterInGroup( type->baby_monster_group, tmp.type ) ) { // baby nearby; is the player too close? mon_plan.dist = tmp.rate_target( *mon_plan.target, mon_plan.dist, mon_plan.smart_planning ); if( mon_plan.dist <= 3 ) {