Summary: Alternative gfx tag never used for unit orientation
                 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
         Discussion Lock: Any
        Operating System: None
         Planned Release: 2.4.0, 2.5.0



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
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



Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to