summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network.cpp2
-rw-r--r--src/network/network_gui.cpp16
2 files changed, 9 insertions, 9 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp
index 6b3137e82..cbd3e2fd2 100644
--- a/src/network/network.cpp
+++ b/src/network/network.cpp
@@ -202,7 +202,7 @@ void NetworkTextMessage(NetworkAction action, ConsoleColour color, bool self_sen
case NETWORK_ACTION_GIVE_MONEY: strid = self_send ? STR_NETWORK_GAVE_MONEY_AWAY : STR_NETWORK_GIVE_MONEY; break;
case NETWORK_ACTION_CHAT_COMPANY: strid = self_send ? STR_NETWORK_CHAT_TO_COMPANY : STR_NETWORK_CHAT_COMPANY; break;
case NETWORK_ACTION_CHAT_CLIENT: strid = self_send ? STR_NETWORK_CHAT_TO_CLIENT : STR_NETWORK_CHAT_CLIENT; break;
- default: strid = STR_NETWORK_CHAT_ALL; break;
+ default: strid = STR_NETWORK_CHAT_ALL; break;
}
char message[1024];
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index 380bf9060..7e3483501 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -608,7 +608,7 @@ public:
EventState state = ES_NOT_HANDLED;
/* handle up, down, pageup, pagedown, home and end */
- if (keycode == WKC_UP || keycode == WKC_DOWN || keycode == WKC_PAGEUP || keycode == WKC_PAGEDOWN || keycode == WKC_HOME || keycode == WKC_END) {
+ if (keycode == WKC_UP || keycode == WKC_DOWN || keycode == WKC_PAGEUP || keycode == WKC_PAGEDOWN || keycode == WKC_HOME || keycode == WKC_END) {
if (this->servers.Length() == 0) return ES_HANDLED;
switch (keycode) {
case WKC_UP:
@@ -642,15 +642,15 @@ public:
default: break;
}
- this->server = this->servers[this->list_pos];
+ this->server = this->servers[this->list_pos];
- /* scroll to the new server if it is outside the current range */
- this->ScrollToSelectedServer();
+ /* scroll to the new server if it is outside the current range */
+ this->ScrollToSelectedServer();
- /* redraw window */
- this->SetDirty();
- return ES_HANDLED;
- }
+ /* redraw window */
+ this->SetDirty();
+ return ES_HANDLED;
+ }
if (this->field != NGWW_CLIENT) {
if (this->server != NULL) {