player_gui.c
changeset 2436 177cb6a8339f
parent 2246 f25de67915ee
child 2473 bbc4e805214d
--- a/player_gui.c	Sat Sep 17 13:57:01 2005 +0000
+++ b/player_gui.c	Sun Sep 18 20:56:44 2005 +0000
@@ -24,10 +24,11 @@
 static void DoShowPlayerFinances(int player, bool show_small, bool show_stickied);
 
 
-static void DrawPlayerEconomyStats(Player *p, byte mode)
+static void DrawPlayerEconomyStats(const Player *p, byte mode)
 {
 	int x,y,i,j,year;
-	int64 (*tbl)[13], sum,cost;
+	const int64 (*tbl)[13];
+	int64 sum, cost;
 	StringID str;
 
 	if (!(mode & 1)) { // normal sized economics window (mode&1) is minimized status
@@ -415,7 +416,7 @@
 {   WIDGETS_END},
 };
 
-static void DrawPlayerVehiclesAmount(int player)
+static void DrawPlayerVehiclesAmount(PlayerID player)
 {
 	const int x = 110;
 	int y = 72;
@@ -470,7 +471,7 @@
 	}
 }
 
-int GetAmountOwnedBy(Player *p, byte owner)
+int GetAmountOwnedBy(const Player *p, PlayerID owner)
 {
 	return (p->share_owners[0] == owner) +
 				 (p->share_owners[1] == owner) +
@@ -478,7 +479,7 @@
 				 (p->share_owners[3] == owner);
 }
 
-static void DrawCompanyOwnerText(Player *p)
+static void DrawCompanyOwnerText(const Player *p)
 {
 	int num = -1;
 	Player *p2;