Follow-up Comment #4, bug #22988 (project wesnoth):
no there is currently no mechanism for cutomizing undos, although it has been
requested multiple times (see older feature requests, or this page:
http://wiki.wesnoth.org/EasyCoding (i woudn't call this easy though)).
currently [allow_undo] (or not allow undo) is the only thing that event
"returns" to the c++ caller, i agree that this has quite some drawbacks in a
situation like this. This is also annyong in enter/exit_hex events where
[allow_undo] basicly means 'don't stop this unit in its move' and those events
never prevent undoing. I think we should add a second tag [dont_interrupt] (do
you know a better name?) that would then also solve the problems with
enter/exit_hex.
However, this is not the part of the code im working on currently.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?22988>
_______________________________________________
Nachricht gesendet von/durch Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs