[wesnoth-commits] [wesnoth/wesnoth] 1bf05f: Split add and remove label into separate functions

Celtic Minstrel noreply at github.com
Thu Jun 24 04:52:08 UTC 2021


  Branch: refs/heads/lua_mouse_action
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 1bf05fb862d903173f02188c74f470bf937b2dd3
      https://github.com/wesnoth/wesnoth/commit/1bf05fb862d903173f02188c74f470bf937b2dd3
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-24 (Thu, 24 Jun 2021)

  Changed paths:
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/game_lua_kernel.hpp

  Log Message:
  -----------
  Split add and remove label into separate functions

Remove label can now take the team name as a separate second argument, rather than being in the same table with the location.


  Commit: 0ef4a86b7e698512b403322941c4432077c2ff44
      https://github.com/wesnoth/wesnoth/commit/0ef4a86b7e698512b403322941c4432077c2ff44
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-24 (Thu, 24 Jun 2021)

  Changed paths:
    M data/lua/core/wml.lua

  Log Message:
  -----------
  Fix wml.remove_children


  Commit: 3bcc18ad96c3465929bb68eba31bfb6fa70473f5
      https://github.com/wesnoth/wesnoth/commit/3bcc18ad96c3465929bb68eba31bfb6fa70473f5
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-24 (Thu, 24 Jun 2021)

  Changed paths:
    M data/lua/wml-tags.lua
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  A cleaner interface for wesnoth.map.place_area


  Commit: f5a1c20548197ddf140cf5542922299841f03af1
      https://github.com/wesnoth/wesnoth/commit/f5a1c20548197ddf140cf5542922299841f03af1
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-24 (Thu, 24 Jun 2021)

  Changed paths:
    M src/mouse_events.cpp
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/game_lua_kernel.hpp

  Log Message:
  -----------
  Try to fix the issues with wesnoth.game_events.on_mouse_action

- Save the clicked hex to ensure the action definitely applies on the same hex that was clicked
- on_mouse_action can now return a location, which will be used instead of the hex that was clicked


Compare: https://github.com/wesnoth/wesnoth/compare/1bf05fb862d9%5E...f5a1c2054819



More information about the Commits mailing list