(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.
This commit is contained in:
Darkvater
2005-05-12 23:47:45 +00:00
parent 033995ec6e
commit 31f8f6a7b5
2 changed files with 46 additions and 43 deletions

View File

@@ -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;