[Freeciv-Dev] [bug #20018] Alternative gfx tag never used for unit orientation sprites

2012-08-04 Thread Marko Lindqvist
Update of bug #20018 (project freeciv):

  Status:  Ready For Test = Fixed  
 Assigned to:None = cazfi  
 Open/Closed:Open = Closed 


___

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


[Freeciv-Dev] [bug #20018] Alternative gfx tag never used for unit orientation sprites

2012-08-01 Thread Marko Lindqvist
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