Fix chance_flee for enemies that move via waypoints

Fixes #758
Make sure cursor is inside scrollbox when passing clicks

Closes #765
Merge pull request #766 from dorkster/scrollbox

Make sure cursor is inside scrollbox when passing clicks
Merge pull request #759 from dorkster/waypoint_flee

Fix chance_flee for enemies that move via waypoints