diff options
author | rubidium <rubidium@openttd.org> | 2009-03-14 18:16:29 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-03-14 18:16:29 +0000 |
commit | 9d018723b7bab3341cd455708a6cd98283d75c34 (patch) | |
tree | 52ab96dc0e1aa14f6c966c67c4a94ba1762f9c15 /src/network | |
parent | 1692ce83122d1ed15206f160aea339761b173174 (diff) | |
download | openttd-9d018723b7bab3341cd455708a6cd98283d75c34.tar.xz |
(svn r15711) -Codechange: lots of whitespace cleanup/fixes
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/network_chat_gui.cpp | 4 | ||||
-rw-r--r-- | src/network/network_content.cpp | 6 | ||||
-rw-r--r-- | src/network/network_gui.cpp | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/src/network/network_chat_gui.cpp b/src/network/network_chat_gui.cpp index a308fc934..7331ea4ae 100644 --- a/src/network/network_chat_gui.cpp +++ b/src/network/network_chat_gui.cpp @@ -318,7 +318,7 @@ public: /* Then, try townnames */ /* Not that the following assumes all town indices are adjacent, ie no - * towns have been deleted. */ + * towns have been deleted. */ if (*item <= (uint)MAX_CLIENT_SLOTS + GetMaxTownIndex()) { const Town *t; @@ -375,7 +375,7 @@ public: if (_chat_tab_completion_active) { /* We are pressing TAB again on the same name, is there an other name - * that starts with this? */ + * that starts with this? */ if (!second_scan) { size_t offset; size_t length; diff --git a/src/network/network_content.cpp b/src/network/network_content.cpp index 3a558c7d5..a37e894c1 100644 --- a/src/network/network_content.cpp +++ b/src/network/network_content.cpp @@ -257,9 +257,9 @@ void ClientNetworkContentSocketHandler::DownloadSelectedContent(uint &files, uin while (count > 0) { /* We can "only" send a limited number of IDs in a single packet. - * A packet begins with the packet size and a byte for the type. - * Then this packet adds a uint16 for the count in this packet. - * The rest of the packet can be used for the IDs. */ + * A packet begins with the packet size and a byte for the type. + * Then this packet adds a uint16 for the count in this packet. + * The rest of the packet can be used for the IDs. */ uint p_count = min(count, (SEND_MTU - sizeof(PacketSize) - sizeof(byte) - sizeof(uint16)) / sizeof(uint32)); Packet *p = new Packet(PACKET_CONTENT_CLIENT_CONTENT); diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index 75046e487..6190f78a8 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -713,8 +713,8 @@ public: SetVScrollCount(this, this->servers.Length()); /* Additional colums in server list */ - if (this->width > NetworkGameWindow::MIN_EXTRA_COLUMNS_WIDTH + GetWidgetWidth(NGWW_MAPSIZE) - + GetWidgetWidth(NGWW_DATE) + GetWidgetWidth(NGWW_YEARS)) { + if (this->width > NetworkGameWindow::MIN_EXTRA_COLUMNS_WIDTH + GetWidgetWidth(NGWW_MAPSIZE) + + GetWidgetWidth(NGWW_DATE) + GetWidgetWidth(NGWW_YEARS)) { /* show columns 'Map size', 'Date' and 'Years' */ this->SetWidgetsHiddenState(false, NGWW_MAPSIZE, NGWW_DATE, NGWW_YEARS, WIDGET_LIST_END); AlignWidgetRight(NGWW_YEARS, NGWW_INFO); @@ -1028,7 +1028,7 @@ struct NetworkStartServerWindow : public QueryStringBaseWindow { case NSSW_LOAD: // Load game _is_network_server = true; /* XXX - WC_NETWORK_WINDOW (this window) should stay, but if it stays, it gets - * copied all the elements of 'load game' and upon closing that, it segfaults */ + * copied all the elements of 'load game' and upon closing that, it segfaults */ delete this; ShowSaveLoadDialog(SLD_LOAD_GAME); break; |