Author: mir3x Date: Sun Jul 24 20:09:24 2016 New Revision: 33318 URL: http://svn.gna.org/viewcvs/freeciv?rev=33318&view=rev Log: Client - function to get nation shields. Patch by Louis Moureaux <louis94>
See patch #7487 Modified: trunk/client/tilespec.c trunk/client/tilespec.h Modified: trunk/client/tilespec.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/client/tilespec.c?rev=33318&r1=33317&r2=33318&view=diff ============================================================================== --- trunk/client/tilespec.c (original) +++ trunk/client/tilespec.c Sun Jul 24 20:09:24 2016 @@ -6027,6 +6027,15 @@ } /************************************************************************** + Return the shield sprite for the nation. +**************************************************************************/ +struct sprite *get_nation_shield_sprite(const struct tileset *t, + const struct nation_type *pnation) +{ + return t->sprites.nation_shield.p[nation_index(pnation)]; +} + +/************************************************************************** Return the sprite for the technology/advance. **************************************************************************/ struct sprite *get_tech_sprite(const struct tileset *t, Tech_type_id tech) Modified: trunk/client/tilespec.h URL: http://svn.gna.org/viewcvs/freeciv/trunk/client/tilespec.h?rev=33318&r1=33317&r2=33318&view=diff ============================================================================== --- trunk/client/tilespec.h (original) +++ trunk/client/tilespec.h Sun Jul 24 20:09:24 2016 @@ -320,6 +320,8 @@ const struct city *pcity); struct sprite *get_nation_flag_sprite(const struct tileset *t, const struct nation_type *nation); +struct sprite *get_nation_shield_sprite(const struct tileset *t, + const struct nation_type *nation); struct sprite *get_tech_sprite(const struct tileset *t, Tech_type_id tech); struct sprite *get_building_sprite(const struct tileset *t, struct impr_type *pimprove); _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits