CaravelGames / drod

The official public repository of Deadly Rooms of Death and DROD RPG
http://caravelgames.com
56 stars 17 forks source link

Fix pit obstacle check when NPC is on platform #477

Closed Hypexion closed 1 year ago

Hypexion commented 1 year ago

Problem: Game crashes when a pathfinding NPC is standing on a platform and the room has pits. Solution: Only do the platform check when the NPC is directly next to a pit tile in CCharacter::DoesSquareContainObstacle

Thread: https://forum.caravelgames.com/viewtopic.php?TopicID=45853 See also: https://forum.caravelgames.com/viewtopic.php?TopicID=40798&page=0#403645