[wesnoth-commits] [wesnoth/wesnoth] 3b4a3b: Try to fix the issues with wesnoth.game_events.on_...

Celtic Minstrel noreply at github.com
Fri Jun 25 14:00:52 UTC 2021


  Branch: refs/heads/lua_mouse_action
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 3b4a3b021b059899d300ade9b8d8241b34a77485
      https://github.com/wesnoth/wesnoth/commit/3b4a3b021b059899d300ade9b8d8241b34a77485
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-06-25 (Fri, 25 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





More information about the Commits mailing list