Author: mir3x
Date: Sun Jul 24 20:09:14 2016
New Revision: 33317

URL: http://svn.gna.org/viewcvs/freeciv?rev=33317&view=rev
Log:
Client - function to get nation shields.
Patch by Louis Moureaux <louis94>

See patch #7487


Modified:
    branches/S2_6/client/tilespec.c
    branches/S2_6/client/tilespec.h

Modified: branches/S2_6/client/tilespec.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/tilespec.c?rev=33317&r1=33316&r2=33317&view=diff
==============================================================================
--- branches/S2_6/client/tilespec.c     (original)
+++ branches/S2_6/client/tilespec.c     Sun Jul 24 20:09:14 2016
@@ -5980,6 +5980,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: branches/S2_6/client/tilespec.h
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/tilespec.h?rev=33317&r1=33316&r2=33317&view=diff
==============================================================================
--- branches/S2_6/client/tilespec.h     (original)
+++ branches/S2_6/client/tilespec.h     Sun Jul 24 20:09:14 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

Reply via email to