URL: <http://gna.org/patch/?4297>
Summary: Replace get_basic_special_sprite() with fill_basic_extra_sprite_array() Project: Freeciv Submitted by: cazfi Submitted on: Fri 08 Nov 2013 01:53:40 AM EET Category: client Priority: 5 - Normal Status: Ready For Test Privacy: Public Assigned to: None Originator Email: Open/Closed: Open Discussion Lock: Any Planned Release: 2.6.0 _______________________________________________________ Details: Replace get_basic_special_sprite() that assumed that any non-road, non-base extra would have just one sprite, hardcoded by the type. Introduce fill_basic_extra_sprite_array() that builds sprite array for any extra based on extrastyle. gtk2- and gtk3-client editor code gets some duplicate code removed - functions building pixbuf for road was identical to one building pixbuf for base except for taking base_type instead of road_type. Now there's just one function taking extra_type. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Fri 08 Nov 2013 01:53:40 AM EET Name: FillExtraSpriteArray.patch Size: 15kB By: cazfi <http://gna.org/patch/download.php?file_id=19334> _______________________________________________________ Reply to this item at: <http://gna.org/patch/?4297> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev