Explorar o código

Walking npc now ignore official_cell_stack_limit (#6379)

Atemo %!s(int64=3) %!d(string=hai) anos
pai
achega
4cd2ef747d
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/map/unit.cpp

+ 2 - 1
src/map/unit.cpp

@@ -628,7 +628,8 @@ static TIMER_FUNC(unit_walktoxy_timer)
 		ud->to_x = bl->x;
 		ud->to_y = bl->y;
 
-		if (!ud->state.ignore_cell_stack_limit
+		if (bl->type != BL_NPC	// walking npc ignores cell stack limit
+			&& !ud->state.ignore_cell_stack_limit
 			&& battle_config.official_cell_stack_limit > 0
 			&& map_count_oncell(bl->m, x, y, BL_CHAR|BL_NPC, 1) > battle_config.official_cell_stack_limit) {
 			//Walked on occupied cell, call unit_walktoxy again