URL:
  <http://gna.org/bugs/?13169>

                 Summary: user-made events included twice will fire twice
                 Project: Battle for Wesnoth
            Submitted by: ken_oh
            Submitted on: Wednesday 03/11/2009 at 15:25
                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.5.13
        Operating System: win

    _______________________________________________________

Details:

Take an event, like this one:


[event]
        name=multiply_by_2
        {VARIABLE_OP 2_becomes_4 multiply 2}
[/event]


If you have it in a file and then include that file twice, then fire the
event like so:


{VARIABLE 2_becomes_4 2}
                
[fire_event]
        name=multiply_by_2
[/fire_event]

{DEBUG_MSG "$2_becomes_4 should be 4"}


$2_becomes_4 will actually be 8. 


Of course the error here is actually between chair and keyboard. I'm also not
sure if fixing this would be detrimental to existing event functionality, but
it might be worth looking into. 




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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