summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-04-18 22:41:53 +0000
committerrubidium <rubidium@openttd.org>2007-04-18 22:41:53 +0000
commit2dc558929088ec99f403e84305fad72cafe2fa08 (patch)
tree4c61df1a2939966a82e001dc46309bc70348feb2 /src/network
parent80c259f64fd38cdb84f2bcb8a146e7ec4a448070 (diff)
downloadopenttd-2dc558929088ec99f403e84305fad72cafe2fa08.tar.xz
(svn r9673) -Cleanup: remove spaces before tabs and replace non-indenting tabs with spaces.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_client.cpp2
-rw-r--r--src/network/network_gui.cpp20
-rw-r--r--src/network/network_udp.cpp2
3 files changed, 12 insertions, 12 deletions
diff --git a/src/network/network_client.cpp b/src/network/network_client.cpp
index 2d0a14dcb..24e1f2163 100644
--- a/src/network/network_client.cpp
+++ b/src/network/network_client.cpp
@@ -523,7 +523,7 @@ DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_MAP)
if (_network_join_kbytes_total == 0) return NETWORK_RECV_STATUS_MALFORMED_PACKET;
_network_join_status = NETWORK_JOIN_STATUS_DOWNLOADING;
- InvalidateWindow(WC_NETWORK_STATUS_WINDOW, 0);
+ InvalidateWindow(WC_NETWORK_STATUS_WINDOW, 0);
// The first packet does not contain any more data
return NETWORK_RECV_STATUS_OKAY;
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index 0117d4f29..86bb801aa 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -385,7 +385,7 @@ static void NetworkGameWindowWndProc(Window *w, WindowEvent *e)
y += 10;
}
- } break;
+ } break;
case WE_CLICK:
nd->field = e->we.click.widget;
@@ -452,7 +452,7 @@ static void NetworkGameWindowWndProc(Window *w, WindowEvent *e)
if (nd->server != NULL) ShowNewGRFSettings(false, false, false, &nd->server->info.grfconfig);
break;
- } break;
+ } break;
case WE_DROPDOWN_SELECT: /* we have selected a dropdown item in the list */
switch (e->we.dropdown.button) {
@@ -644,7 +644,7 @@ static void NetworkStartServerWindowWndProc(Window *w, WindowEvent *e)
if (y >= w->vscroll.cap * NSSWND_ROWSIZE + NSSWND_START) break;
}
- } break;
+ } break;
case WE_CLICK:
nd->field = e->we.click.widget;
@@ -914,7 +914,7 @@ static void NetworkLobbyWindowWndProc(Window *w, WindowEvent *e)
SetDParamStr(0, _network_player_info[nd->company].players);
DrawStringTruncated(x, y, STR_NETWORK_PLAYERS, 2, trunc_width); // players
}
- } break;
+ } break;
case WE_CLICK:
switch (e->we.click.widget) {
@@ -929,7 +929,7 @@ static void NetworkLobbyWindowWndProc(Window *w, WindowEvent *e)
id_v += w->vscroll.pos;
nd->company = (id_v >= nd->server->info.companies_on) ? INVALID_PLAYER : NetworkLobbyFindCompanyIndex(id_v);
SetWindowDirty(w);
- } break;
+ } break;
case 7: /* Join company */
if (nd->company != (byte)-1) {
_network_playas = nd->company;
@@ -948,7 +948,7 @@ static void NetworkLobbyWindowWndProc(Window *w, WindowEvent *e)
NetworkTCPQueryServer(_network_last_host, _network_last_port); // company info
NetworkUDPQueryServer(_network_last_host, _network_last_port); // general data
break;
- } break;
+ } break;
case WE_MESSAGE:
SetWindowDirty(w);
@@ -1265,7 +1265,7 @@ static void ClientListPopupWndProc(Window *w, WindowEvent *e)
DoDrawString(_clientlist_action[i], 4, y, colour);
}
- } break;
+ } break;
case WE_POPUPMENU_SELECT: {
// We selected an action
@@ -1275,7 +1275,7 @@ static void ClientListPopupWndProc(Window *w, WindowEvent *e)
HandleClientListPopupClick(index, WP(w,menu_d).main_button);
DeleteWindowById(WC_TOOLBAR_MENU, 0);
- } break;
+ } break;
case WE_POPUPMENU_OVER: {
// Our mouse hoovers over an action? Select it!
@@ -1327,7 +1327,7 @@ static void ClientListWndProc(Window *w, WindowEvent *e)
y += CLNWND_ROWSIZE;
}
- } break;
+ } break;
case WE_CLICK:
// Show the popup with option
@@ -1420,7 +1420,7 @@ static void NetworkJoinStatusWindowWndProc(Window *w, WindowEvent *e)
/* Draw nice progress bar :) */
DrawFrameRect(20, 18, (int)((w->width - 20) * progress / 100), 28, 10, FR_NONE);
- } break;
+ } break;
case WE_CLICK:
switch (e->we.click.widget) {
diff --git a/src/network/network_udp.cpp b/src/network/network_udp.cpp
index 4031f2f6e..a2e3898e7 100644
--- a/src/network/network_udp.cpp
+++ b/src/network/network_udp.cpp
@@ -240,7 +240,7 @@ DEF_UDP_RECEIVE_COMMAND(Server, PACKET_UDP_CLIENT_GET_NEWGRFS)
/* The name could be an empty string, if so take the filename */
ttd_strlcpy(name, (in_reply[i]->name != NULL && !StrEmpty(in_reply[i]->name)) ?
in_reply[i]->name : in_reply[i]->filename, sizeof(name));
- this->Send_GRFIdentifier(&packet, in_reply[i]);
+ this->Send_GRFIdentifier(&packet, in_reply[i]);
packet.Send_string(name);
}