[Commits] [wesnoth/wesnoth] de7d29: tunit_create: always use unit's side for finding T...

GitHub noreply at github.com
Sun Jan 10 16:20:56 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: de7d29f36c2dfae1445128719de19040e39e35f5
      https://github.com/wesnoth/wesnoth/commit/de7d29f36c2dfae1445128719de19040e39e35f5
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2016-01-11 (Mon, 11 Jan 2016)

  Changed paths:
    M src/gui/dialogs/unit_attack.cpp

  Log Message:
  -----------
  tunit_create: always use unit's side for finding TC

I had thought that using current_side() would be better since an attacker is always
on the current side, but using a unit's side is safer and reduces the scope of the
code.


  Commit: 6726c252a5c818bc2d7deeb619ab1b8c388497f3
      https://github.com/wesnoth/wesnoth/commit/6726c252a5c818bc2d7deeb619ab1b8c388497f3
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2016-01-11 (Mon, 11 Jan 2016)

  Changed paths:
    M data/gui/default/window/unit_attack.cfg
    M src/gui/dialogs/unit_attack.cpp

  Log Message:
  -----------
  tunit_attack: made alignment a status label instead of an icon


Compare: https://github.com/wesnoth/wesnoth/compare/1bc83e79824d...6726c252a5c8


More information about the Commits mailing list