URL:
<http://gna.org/bugs/?17743>
Summary: Lua is too greedy regarding handling exceptions
Project: Battle for Wesnoth
Submitted by: mordante
Submitted on: Tue 15 Feb 2011 08:05:30 PM GMT
Category: Bug
Severity: 5 - Blocker
Priority: 5 - Normal
Item Group: None of the others
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: trunk r48530
Operating System: Debian Squeeze
_______________________________________________________
Details:
When throwing a end_level_exception(VICTORY) from C++ code that passes
through Lua the event is lost and the game gives no victory.
Attached two patches to demonstrate the behaviour of 1.8 and trunk. The way
to reproduce is start the 'Heir to the Throne'
With the patch in 1.8 you have instant victory.
With the patch in trunk you have a Lua error message.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Tue 15 Feb 2011 08:05:30 PM GMT Name: patch-1.8 Size: 660B By:
mordante
<http://gna.org/bugs/download.php?file_id=12462>
-------------------------------------------------------
Date: Tue 15 Feb 2011 08:05:30 PM GMT Name: patch-trunk Size: 635B By:
mordante
<http://gna.org/bugs/download.php?file_id=12463>
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?17743>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs