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

                 Summary: Scripting: Disallow setting player gold below 0
                 Project: Freeciv
            Submitted by: englabenny
            Submitted on: måndag 2010-03-22 den 20:03
                Category: general
                Severity: 3 - Normal
                Priority: 1 - Later
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 2.2
         Discussion Lock: Any
        Operating System: None
         Planned Release: 

    _______________________________________________________

Details:

The Script API has no way to check a player's gold reserve, and if
change_gold puts it below 0, freeciv will meet an assert soon. Thus,
change_gold cannot be used right now with negative amounts.

Patch attached to silently put a floor on player gold at 0 in the script
API.






    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: måndag 2010-03-22 den 20:03  Name:
0001-Scripting-Disallow-setting-player-gold-to-less-than-.patch  Size: 1 kB  
By: englabenny

<http://gna.org/bugs/download.php?file_id=8618>

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Meddelandet skickades via/av Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to