diff options
author | Darkvater <darkvater@openttd.org> | 2005-05-12 23:47:45 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2005-05-12 23:47:45 +0000 |
commit | 31f8f6a7b50a47a92c2f9afec29a8bb1cbe65f5a (patch) | |
tree | 60b3edfc01f6909a55f00cf8cdcb60298f00e7d1 /network_client.c | |
parent | 033995ec6ecd443404fa1a236c6763ddc9cce321 (diff) | |
download | openttd-31f8f6a7b50a47a92c2f9afec29a8bb1cbe65f5a.tar.xz |
(svn r2301) - CodeChange: prettyify ChangeOwnerShipOfPlayerItems() a bit
- CodeChange: add comments to a very ugly part of the code (network_client.c); that enforces that the server gives an ID to the client.
Diffstat (limited to 'network_client.c')
-rw-r--r-- | network_client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/network_client.c b/network_client.c index abc8cb4b7..6f4cebe01 100644 --- a/network_client.c +++ b/network_client.c @@ -530,7 +530,8 @@ DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_MAP) _local_player = OWNER_SPECTATOR; DeleteWindowById(WC_NETWORK_STATUS_WINDOW, 0); } else { - // send a command to make a new player + /* We have arrived and ready to start playing; send a command to make a new player; + * the server will give us a client-id and let us in */ _local_player = 0; NetworkSend_Command(0, 0, 0, CMD_PLAYER_CTRL, NULL); _local_player = OWNER_SPECTATOR; |