[wesnoth-commits] [wesnoth/wesnoth] b915d7: Try to fix the issues with wesnoth.game_events.on_...
Celtic Minstrel
noreply at github.com
Thu Feb 17 18:50:06 UTC 2022
Branch: refs/heads/lua_mouse_action
Home: https://github.com/wesnoth/wesnoth
Commit: b915d7e261ca33ec745a25b80a85c9a03979015a
https://github.com/wesnoth/wesnoth/commit/b915d7e261ca33ec745a25b80a85c9a03979015a
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2022-02-17 (Thu, 17 Feb 2022)
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