[wesnoth-commits] [wesnoth/wesnoth] 3c9c91: Try to fix the issues with wesnoth.game_events.on_...
Celtic Minstrel
noreply at github.com
Sat Feb 5 14:59:15 UTC 2022
Branch: refs/heads/lua_mouse_action
Home: https://github.com/wesnoth/wesnoth
Commit: 3c9c91679e66892bd03c15a8988ff67be73ccd74
https://github.com/wesnoth/wesnoth/commit/3c9c91679e66892bd03c15a8988ff67be73ccd74
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2022-02-05 (Sat, 05 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