JimViebke / IslandMUD

A C++ MUD
MIT License
9 stars 3 forks source link

Hostile NPC Bodyguards get stuck pursuing the player #194

Closed JimViebke closed 8 years ago

JimViebke commented 8 years ago

This occurs when the protect_target moves out of range of a bodyguard assigned to it, and the bodyguard can't pathfind to the protect_target because the target is out of sight range.

JimViebke commented 8 years ago

Fixed with 42dd9a4 and b962675.

Worker NPCs have remedial pathfinding. This logic was moved to the NPC class so all NPC types can use it.