(svn r4623) - Codechange: s/byte/PlayerID/
authorDarkvater
Sat, 29 Apr 2006 14:31:16 +0000
changeset 3692 01468bf49e8b
parent 3691 7e1ad0718ed8
child 3693 af2ee9b328e6
(svn r4623) - Codechange: s/byte/PlayerID/
ai/ai.c
main_gui.c
misc_gui.c
network.h
network_client.c
network_gui.c
town_gui.c
--- a/ai/ai.c	Sat Apr 29 09:47:43 2006 +0000
+++ b/ai/ai.c	Sat Apr 29 14:31:16 2006 +0000
@@ -11,7 +11,7 @@
 /**
  * Dequeues commands put in the queue via AI_PutCommandInQueue.
  */
-static void AI_DequeueCommands(byte player)
+static void AI_DequeueCommands(PlayerID player)
 {
 	AICommand *com, *entry_com;
 
--- a/main_gui.c	Sat Apr 29 09:47:43 2006 +0000
+++ b/main_gui.c	Sat Apr 29 14:31:16 2006 +0000
@@ -580,7 +580,7 @@
 	}
 }
 
-extern void DrawPlayerIcon(int p, int x, int y);
+extern void DrawPlayerIcon(PlayerID pid, int x, int y);
 
 static void PlayerMenuWndProc(Window *w, WindowEvent *e)
 {
--- a/misc_gui.c	Sat Apr 29 09:47:43 2006 +0000
+++ b/misc_gui.c	Sat Apr 29 14:31:16 2006 +0000
@@ -1719,7 +1719,7 @@
 {   WIDGETS_END},
 };
 
-extern void DrawPlayerIcon(int p, int x, int y);
+extern void DrawPlayerIcon(PlayerID pid, int x, int y);
 
 static void CheatsWndProc(Window *w, WindowEvent *e)
 {
--- a/network.h	Sat Apr 29 09:47:43 2006 +0000
+++ b/network.h	Sat Apr 29 14:31:16 2006 +0000
@@ -222,7 +222,7 @@
 VARDEF bool _network_available;  // is network mode available?
 VARDEF bool _network_server; // network-server is active
 VARDEF bool _network_dedicated; // are we a dedicated server?
-VARDEF byte _network_playas; // an id to play as..
+VARDEF PlayerID _network_playas; // an id to play as..
 
 void ParseConnectionString(const char **player, const char **port, char *connection_string);
 void NetworkUpdateClientInfo(uint16 client_index);
--- a/network_client.c	Sat Apr 29 09:47:43 2006 +0000
+++ b/network_client.c	Sat Apr 29 14:31:16 2006 +0000
@@ -327,7 +327,7 @@
 {
 	NetworkClientInfo *ci;
 	uint16 index = NetworkRecv_uint16(MY_CLIENT, p);
-	byte playas = NetworkRecv_uint8(MY_CLIENT, p);
+	PlayerID playas = NetworkRecv_uint8(MY_CLIENT, p);
 	char name[NETWORK_NAME_LENGTH];
 	char unique_id[NETWORK_NAME_LENGTH];
 
--- a/network_gui.c	Sat Apr 29 09:47:43 2006 +0000
+++ b/network_gui.c	Sat Apr 29 14:31:16 2006 +0000
@@ -27,7 +27,7 @@
 #define BTC 15
 
 typedef struct network_d {
-	byte company;            // select company in network lobby
+	PlayerID company;        // select company in network lobby
 	byte field;              // select text-field in start-server and game-listing
 	NetworkGameList *server; // selected server in lobby and game-listing
 	FiosItem *map;           // selected map in start-server
@@ -1004,7 +1004,7 @@
 //  and also makes able to give money to them, kick them (if server)
 //  and stuff like that.
 
-extern void DrawPlayerIcon(int p, int x, int y);
+extern void DrawPlayerIcon(PlayerID pid, int x, int y);
 
 // Every action must be of this form
 typedef void ClientList_Action_Proc(byte client_no);
--- a/town_gui.c	Sat Apr 29 09:47:43 2006 +0000
+++ b/town_gui.c	Sat Apr 29 14:31:16 2006 +0000
@@ -29,7 +29,7 @@
 };
 
 extern const byte _town_action_costs[8];
-extern void DrawPlayerIcon(int p, int x, int y);
+extern void DrawPlayerIcon(PlayerID pid, int x, int y);
 
 /** Get a list of available actions to do at a town.
  * @param *nump if not NULL add put the number of available actions in it