[wesnoth-commits] [wesnoth/wesnoth] cd26e8: When checking [variable] comparison attributes, re...

Pentarctagon noreply at github.com
Sat Apr 10 22:01:16 UTC 2021


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: cd26e800fa490fc0d89c1ada0c9919e80792dd51
      https://github.com/wesnoth/wesnoth/commit/cd26e800fa490fc0d89c1ada0c9919e80792dd51
  Author: Pentarctagon <pentarctagon at tutamail.com>
  Date:   2021-04-10 (Sat, 10 Apr 2021)

  Changed paths:
    M src/game_events/conditional_wml.cpp

  Log Message:
  -----------
  When checking [variable] comparison attributes, return after checking the first one.

The current implementation technically allows for there to be multiple comparison attributes present and it will return false if any of them are false or return true if all of them are true. This changes the implementation to only check the first comparison attribute found and return true or false based on that check, which is how the [variable] tag is documented as working on the wiki.





More information about the Commits mailing list