summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
Diffstat (limited to 'src/network')
-rw-r--r--src/network/core/udp.cpp6
-rw-r--r--src/network/network_chat_gui.cpp4
-rw-r--r--src/network/network_client.cpp2
-rw-r--r--src/network/network_content_gui.cpp2
-rw-r--r--src/network/network_gui.cpp2
-rw-r--r--src/network/network_server.cpp4
6 files changed, 10 insertions, 10 deletions
diff --git a/src/network/core/udp.cpp b/src/network/core/udp.cpp
index 9be5636db..679bfa313 100644
--- a/src/network/core/udp.cpp
+++ b/src/network/core/udp.cpp
@@ -246,16 +246,16 @@ void NetworkUDPSocketHandler::Recv_NetworkGameInfo(Packet *p, NetworkGameInfo *i
*dst = c;
dst = &c->next;
}
- } // Fallthrough
+ } // FALL THROUGH
case 3:
info->game_date = Clamp(p->Recv_uint32(), 0, MAX_DATE);
info->start_date = Clamp(p->Recv_uint32(), 0, MAX_DATE);
- /* Fallthrough */
+ /* FALL THROUGH */
case 2:
info->companies_max = p->Recv_uint8 ();
info->companies_on = p->Recv_uint8 ();
info->spectators_max = p->Recv_uint8 ();
- /* Fallthrough */
+ /* FALL THROUGH */
case 1:
p->Recv_string(info->server_name, sizeof(info->server_name));
p->Recv_string(info->server_revision, sizeof(info->server_revision));
diff --git a/src/network/network_chat_gui.cpp b/src/network/network_chat_gui.cpp
index a3c9208cb..a81e70c8c 100644
--- a/src/network/network_chat_gui.cpp
+++ b/src/network/network_chat_gui.cpp
@@ -484,7 +484,7 @@ struct NetworkChatWindow : public QueryStringBaseWindow {
switch (widget) {
/* Send */
case NWCW_SENDBUTTON: SendChat(this->text.buf, this->dtype, this->dest);
- /* FALLTHROUGH */
+ /* FALL THROUGH */
case NWCW_CLOSE: /* Cancel */ delete this; break;
}
}
@@ -510,7 +510,7 @@ struct NetworkChatWindow : public QueryStringBaseWindow {
} break;
case HEBR_CONFIRM:
SendChat(this->text.buf, this->dtype, this->dest);
- /* FALLTHROUGH */
+ /* FALL THROUGH */
case HEBR_CANCEL: delete this; break;
case HEBR_NOT_FOCUSED: break;
}
diff --git a/src/network/network_client.cpp b/src/network/network_client.cpp
index 56f1c6222..4e80354eb 100644
--- a/src/network/network_client.cpp
+++ b/src/network/network_client.cpp
@@ -782,7 +782,7 @@ DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_CHAT)
/* For speaking to company or giving money, we need the company-name */
case NETWORK_ACTION_GIVE_MONEY:
if (!Company::IsValidID(ci_to->client_playas)) return NETWORK_RECV_STATUS_OKAY;
- /* fallthrough */
+ /* FALL THROUGH */
case NETWORK_ACTION_CHAT_COMPANY: {
StringID str = Company::IsValidID(ci_to->client_playas) ? STR_COMPANY_NAME : STR_NETWORK_SPECTATORS;
SetDParam(0, ci_to->client_playas);
diff --git a/src/network/network_content_gui.cpp b/src/network/network_content_gui.cpp
index e3baf41cb..f73de7582 100644
--- a/src/network/network_content_gui.cpp
+++ b/src/network/network_content_gui.cpp
@@ -688,7 +688,7 @@ public:
}
return ES_HANDLED;
}
- /* Fall through when pressing space is pressed and filter isn't focused */
+ /* FALL THROUGH, space is pressed and filter isn't focused. */
default: {
/* Handle editbox input */
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index d7a03a99b..dbf48e091 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -2158,7 +2158,7 @@ struct NetworkJoinStatusWindow : Window {
SetDParam(0, _network_join_bytes);
SetDParam(1, _network_join_bytes_total);
DrawString(r.left + 2, r.right - 2, r.top + 20 + FONT_HEIGHT_NORMAL, STR_NETWORK_CONNECTING_DOWNLOADING, TC_FROMSTRING, SA_HOR_CENTER);
- /* Fallthrough */
+ /* FALL THROUGH */
default: // Waiting is 15%, so the resting receivement of map is maximum 70%
progress = 15 + _network_join_bytes * (100 - 15) / _network_join_bytes_total;
}
diff --git a/src/network/network_server.cpp b/src/network/network_server.cpp
index 3178df8d2..13a0a42b2 100644
--- a/src/network/network_server.cpp
+++ b/src/network/network_server.cpp
@@ -1153,7 +1153,7 @@ void NetworkServerSendChat(NetworkAction action, DestType desttype, int dest, co
break;
default:
DEBUG(net, 0, "[server] received unknown chat destination type %d. Doing broadcast instead", desttype);
- /* fall-through to next case */
+ /* FALL THROUGH */
case DESTTYPE_BROADCAST:
FOR_ALL_CLIENT_SOCKETS(cs) {
SEND_COMMAND(PACKET_SERVER_CHAT)(cs, action, from_id, false, msg, data);
@@ -1185,7 +1185,7 @@ DEF_SERVER_RECEIVE_COMMAND(PACKET_CLIENT_CHAT)
switch (action) {
case NETWORK_ACTION_GIVE_MONEY:
if (!Company::IsValidID(ci->client_playas)) break;
- /* Fall-through */
+ /* FALL THROUGH */
case NETWORK_ACTION_CHAT:
case NETWORK_ACTION_CHAT_CLIENT:
case NETWORK_ACTION_CHAT_COMPANY: