URL:
<http://gna.org/patch/?2851>
Summary: Patch for bug #17527: Feeding ability doubles when
ghast and necrophage are in same scenario
Project: Battle for Wesnoth
Submitted by: thonsew
Submitted on: Sun 31 Jul 2011 07:04:30 AM GMT
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
This patch fixes the feeding bug by removing duplicate events in the
game_events.
The feeding bug occurs when feeders (ghasts/necrophages/etc) get additional
permanent hitpoints equal to the number of types of feeders in the scenario as
opposed to just one hitpoint as expected. It is a specific instance of the
more general WML bug of duplicated events described in
http://wiki.wesnoth.org/EventWML#A_Trap_for_the_Unwary
where identical events created in WML are duplicated.
The patch checks each event added to event_handlers and new_handlers to see
if it is a duplicate event, in which case it is discarded.
Note: While this fixes the bug it may break WML that is counting on the
previous buggy behavior.
thonsew
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sun 31 Jul 2011 07:04:30 AM GMT Name: feeding_bug.patch Size: 8kB
By: thonsew
<http://gna.org/patch/download.php?file_id=13704>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?2851>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs