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

                 Summary: Alternative gfx tag never used for unit orientation
sprites
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Thu 02 Aug 2012 04:53:09 AM EEST
                Category: client
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: Ready For Test
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 
         Discussion Lock: Any
        Operating System: None
         Planned Release: 2.4.0, 2.5.0

    _______________________________________________________

Details:

Unit orientation sprites are loaded from primary tags only. If it fails, icon
gfx (single sprite) is loaded with either primary or alternative tag. If that
too fails (unit has only alternative orientation sprites), or even if
alternative icon loading succeedes, alternative orientation sprites are never
loaded.
This mess is caused by attempts to avoid loading orientation sprites with one
tag, and icon with another.

Attached fix refactors these functions in a way that loading of orientation
sprites and icon gfx from single tag happens in one go. If loading from
primary tag fails (neither icon or orientation sprites found), new attempt
with alternative tag is made.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 02 Aug 2012 04:53:09 AM EEST  Name: OrientFallback.patch  Size: 3kB 
 By: cazfi

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

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


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

Reply via email to