Summary: Lua disaster signal can't suppress message "We
survived the disaster without serious damages."
                 Project: Freeciv
            Submitted by: jtn
            Submitted on: Sun 25 May 2014 12:08:34 BST
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
        Operating System: Any
         Planned Release: 2.5.0, 2.6.0



In apply_disaster(), if none of the built-in disasters fire, the message "We
survived the disaster without serious damages." is emitted before the script
signal fires. This may be unwanted for disasters implemented in Lua.

Unfortunately I don't think there's any way for the Lua signal handler to
return whether a disaster occurred. Perhaps we can move the emission of the
message to a default signal handler in default.lua instead, and make emitting
the message ruleset Lua's responsibility?

(Alternatively we could just get rid of the message.)


Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to