[wesnoth-commits] [wesnoth/wesnoth] 565fd5: reset units upkeep on type change

GitHub noreply at github.com
Tue Mar 13 15:03:08 UTC 2018


  Branch: refs/heads/gfgtdf-patch-1
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 565fd5b05a8ca784d383df2342f6fe4a6a39cf9d
      https://github.com/wesnoth/wesnoth/commit/565fd5b05a8ca784d383df2342f6fe4a6a39cf9d
  Author: gfgtdf <daniel.gfgtdf at gmail.com>
  Date:   2018-03-13 (Tue, 13 Mar 2018)

  Changed paths:
    M src/units/unit.cpp

  Log Message:
  -----------
  reset units upkeep on type change

this fixes 2 issues:
1) previously code like
```
[object]
  x,y=5,5
  id=a
  [effect]
    apply_to=loyal
  [/effect]
[/object]
[remove_object]
  x,y=5,5
  object_id=a
[/remove_object]
```
would leave the unit at 5,5 with a loyal upkeep even though the object was removed

2) fixes #1779




More information about the Commits mailing list