Quantcast

Fix a bug with distance callbacks

Author James Whitehead II <jnwhiteh@gmail.com>
Author date 2012-10-23 19:03:39
Author local date 2012-10-23 21:03:39 +0200
Committer James Whitehead II <jnwhiteh@gmail.com>
Committer date 2012-10-23 19:03:39
Committer local date 2012-10-23 21:03:39 +0200
Commit 7ad8efa7e1bed2ccc2254630ad3622cb213e4551
Tree 4e1bea55ec92f34978a0d73247416b650a01e9ac
Parent 6e72d2b1fb1ebea6ff4e05e7afc2612c32718d8c
Fix a bug with distance callbacks

If the player is within the distance callback circle when the waypoint
is first set, the last parameter of the callback should be nil. This
enables the callbacks to ignore the initial trigger of the callback.

Practically, this stops /wayb from being immediately cleared.