[wesnoth-commits] [wesnoth/wesnoth] fc7054: Fix custom synced commands not changing the AI gam...

mattsc noreply at github.com
Sat Jul 10 02:42:58 UTC 2021


  Branch: refs/heads/1.16
  Home:   https://github.com/wesnoth/wesnoth
  Commit: fc7054c568c74ae47fe68b1680541eecbf6a3fc8
      https://github.com/wesnoth/wesnoth/commit/fc7054c568c74ae47fe68b1680541eecbf6a3fc8
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2021-07-09 (Fri, 09 Jul 2021)

  Changed paths:
    M src/game_events/action_wml.cpp

  Log Message:
  -----------
  Fix custom synced commands not changing the AI game state

The old ai.synced_command function always set the AI-context game state to changed when executing such a command. This was inadvertently omitted when the implementation was changed to invoke_synced_command in fef953a4. While custom synced commands may or may not change the game state and the engine has no means of determining this correctly in all cases (meaning that neither behavior is technically wrong), the fact that the behavior was changed should be considered a bug. This commit changes it back to how it was before fef953a4.





More information about the Commits mailing list