[wesnoth-commits] [wesnoth/wesnoth] 0c3ca1: remove useless code in unit::advance_to

GitHub noreply at github.com
Sat May 26 12:58:24 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 0c3ca19e9d36144fe21fb406883ff7c99fa109c6
      https://github.com/wesnoth/wesnoth/commit/0c3ca19e9d36144fe21fb406883ff7c99fa109c6
  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