Follow-up Comment #1, bug #21285 (project wesnoth):

Poking around in the source, it seems there's a couple places you might try to
add something like this but also a couple issues.

One place is in src/playcontroller.cpp:

https://github.com/wesnoth/wesnoth-old/blob/master/src/play_controller.cpp#L510

I'm not sure if that's the best idea.

A different place is in the undo-stack code, maybe here:
https://github.com/wesnoth/wesnoth-old/blob/master/src/actions/undo.cpp#L559

However it raises some issues. What will you do if the user then "redoes" the
action? As I understand this doesn't quite play out the same as performing the
action. Do you also want a "redo" event? The comments in the source code in
undo.cpp seem to suggest that maybe you should disallow undo in the case you
have in mind.


    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?21285>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to