Mercurial > hg > openttd
diff src/network/network_gui.cpp @ 7321:66202e2e042a draft
(svn r10684) -Codechange: some more coding style related changes. Primarily moving { to a new line.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Wed, 25 Jul 2007 00:16:30 +0000 (2007-07-25) |
parents | e693c554c444 |
children | 549c757023fc |
line wrap: on
line diff
--- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -87,7 +87,8 @@ static StringID _language_dropdown[NETLANG_COUNT + 1] = {STR_NULL}; -void SortNetworkLanguages() { +void SortNetworkLanguages() +{ /* Init the strings */ if (_language_dropdown[0] == STR_NULL) { for (int i = 0; i < NETLANG_COUNT; i++) _language_dropdown[i] = STR_NETWORK_LANG_ANY + i; @@ -1133,7 +1134,8 @@ // Help, a action is clicked! What do we do? -static void HandleClientListPopupClick(byte index, byte clientno) { +static void HandleClientListPopupClick(byte index, byte clientno) +{ // A click on the Popup of the ClientList.. handle the command if (index < MAX_CLIENTLIST_ACTION && _clientlist_proc[index] != NULL) { _clientlist_proc[index](clientno); @@ -1166,7 +1168,8 @@ } // Finds the amount of actions in the popup and set the height correct -static uint ClientListPopupHeigth() { +static uint ClientListPopupHeight() +{ int i, num = 0; // Find the amount of actions @@ -1236,7 +1239,7 @@ } /* Calculate the height */ - h = ClientListPopupHeigth(); + h = ClientListPopupHeight(); // Allocate the popup w = AllocateWindow(x, y, 150, h + 1, ClientListPopupWndProc, WC_TOOLBAR_MENU, _client_list_popup_widgets); @@ -1486,7 +1489,7 @@ static void SendChat(const char *buf, DestType type, int dest) { - if (buf[0] == '\0') return; + if (StrEmpty(buf)) return; if (!_network_server) { SEND_COMMAND(PACKET_CLIENT_CHAT)((NetworkAction)(NETWORK_ACTION_CHAT + type), type, dest, buf); } else {