[wesnoth-commits] [wesnoth/wesnoth] 67d2ee: remove useless code in unit::advance_to

GitHub noreply at github.com
Sat May 26 12:28:36 UTC 2018


  Branch: refs/heads/1.14
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 67d2ee7db083f29cf7b911eb9feb8c1e0dd43603
      https://github.com/wesnoth/wesnoth/commit/67d2ee7db083f29cf7b911eb9feb8c1e0dd43603
  Author: gfgtdf <daniel.gfgtdf at gmail.com>
  Date:   2018-05-26 (Sat, 26 May 2018)

  Changed paths:
    M src/units/unit.cpp

  Log Message:
  -----------
  remove useless code in unit::advance_to

the line above does exactly the same as the line inside that if(){..} so it has no effect.

Also, what the comment says is wrong. We do not want to keep the old recall cost if it is different from the original recall cost because  doing that would break removing objects that change recall cost.



      **NOTE:** This service 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