google-code-export / badquest

Automatically exported from code.google.com/p/badquest
0 stars 0 forks source link

isPathClear needs to check against a room's bounding box #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Will currently return true if the path contains no obstacles yet goes outside 
of the room. Just a quick check will suffice.

Original issue reported on code.google.com by mikeg3...@gmail.com on 31 Jan 2013 at 11:13

GoogleCodeExporter commented 9 years ago
All better. An AI that finds itself outside of the room will still find 
isPathClear checks true, but one within the room will never try to leave.

Original comment by mikeg3...@gmail.com on 11 Feb 2013 at 4:18