[wesnoth-commits] [wesnoth/wesnoth] 09e389: ai_helper.move_unit_out_of_way: prevent potential ...

GitHub noreply at github.com
Mon Oct 22 02:31:31 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 09e389166826dcb1e622e97fc77dffba68eca305
      https://github.com/wesnoth/wesnoth/commit/09e389166826dcb1e622e97fc77dffba68eca305
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2018-10-21 (Sun, 21 Oct 2018)

  Changed paths:
    M data/ai/lua/ai_helper.lua

  Log Message:
  -----------
  ai_helper.move_unit_out_of_way: prevent potential for divide-by-zero

dx = dy = 0 is a perfectly acceptable choice of values when there is no preferred direction.



      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the Commits mailing list