[Commits] [wesnoth/wesnoth] f5911b: fix filters using this_unit in [hides]

GitHub noreply at github.com
Mon Oct 16 15:56:12 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: f5911b653a7281825b01b587c94aff06d0b07bb4
      https://github.com/wesnoth/wesnoth/commit/f5911b653a7281825b01b587c94aff06d0b07bb4
  Author: gfgtdf <daniel.gfgtdf at gmail.com>
  Date:   2017-10-17 (Tue, 17 Oct 2017)

  Changed paths:
    M src/units/filter.cpp

  Log Message:
  -----------
  fix filters using this_unit in [hides]

args.loc is the location we use for 'filter as if the unit woudl be there', still the unit is curently at args.u.get_location() so to make scoped_xy_unit  find the unit we have to give args.u.get_location()





More information about the Commits mailing list