URL:
<http://gna.org/bugs/?23556>
Summary: fire_event from inside wesnoth.game_events.on_event
bugged
Project: Battle for Wesnoth
Submitted by: None
Submitted on: Do 30 Apr 2015 19:39:51 UTC
Category: Bug
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: WML
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.13.0
Operating System: windows
_______________________________________________________
Details:
The following lua/wml code should make undoing impossible (there is a
"my_event" event handler executed which does not use [allow_undo]) but undoing
is still possible.
Lua part:
wesnoth.game_events.on_event = function(eventname)
local event_context = wesnoth.current.event_context
if eventname == "moveto" then
wesnoth.fire_event("my_event", event_context.x, event_context.y)
end
end
wml part:
[event]
first_time_only = no
name = "my_event"
[/event]
I did not test this in 1.12
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?23556>
_______________________________________________
Nachricht gesendet von/durch Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs