Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2004:
[Freeciv-Dev] Re: (PR#11489) More const struct player
Home

[Freeciv-Dev] Re: (PR#11489) More const struct player

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] Re: (PR#11489) More const struct player
From: "Frédéric Brière" <fbriere@xxxxxxxxxxx>
Date: Sun, 12 Dec 2004 04:02:12 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=11489 >

One more for the road.


-- 
             Frédéric Brière    <*>    fbriere@xxxxxxxxxxx

 =>  <fbriere@xxxxxxxxxx> IS NO MORE:  <http://www.abacomsucks.com>  <=

Index: client/tilespec.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/tilespec.c,v
retrieving revision 1.219
diff -u -r1.219 tilespec.c
--- client/tilespec.c   11 Dec 2004 23:07:33 -0000      1.219
+++ client/tilespec.c   12 Dec 2004 11:26:34 -0000
@@ -2935,7 +2935,7 @@
   A hack added to avoid returning more that COLOR_STD_RACE13.
   But really there should be more colors available -- jk.
 ***********************************************************************/
-enum color_std player_color(struct player *pplayer)
+enum color_std player_color(const struct player *pplayer)
 {
   return COLOR_STD_RACE0 +
     (pplayer->player_no %
Index: client/tilespec.h
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/tilespec.h,v
retrieving revision 1.92
diff -u -r1.92 tilespec.h
--- client/tilespec.h   3 Dec 2004 09:39:39 -0000       1.92
+++ client/tilespec.h   12 Dec 2004 11:26:34 -0000
@@ -83,7 +83,7 @@
                      struct unit *punit, struct city *pcity,
                      bool citymode);
 
-enum color_std player_color(struct player *pplayer);
+enum color_std player_color(const struct player *pplayer);
 enum color_std overview_tile_color(struct tile *ptile);
 
 void set_focus_unit_hidden_state(bool hide);

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Re: (PR#11489) More const struct player, Frédéric Brière <=