Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2016-07-12 15:05:50 +0200
committerStijn Buys <ingar@osirion.org>2016-07-12 15:05:50 +0200
commitf2d0bd7a9d98d2dca9226afe1dbe5d1340059680 (patch)
treec21a8a2a4faead99818acba41a1e6d086cb35370 /src/core
parent3b990fd97eff35a23d46a135afcd8987f5797e3f (diff)
Corrected misleading indentation warnings.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/gameserver.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/core/gameserver.cc b/src/core/gameserver.cc
index 37c486c..0eb9395 100644
--- a/src/core/gameserver.cc
+++ b/src/core/gameserver.cc
@@ -385,19 +385,19 @@ void GameServer::kick(Player *player, std::string const &reason)
// server sends a message on a specified channel to a single player
void GameServer::message(Player *player, const Message::Channel channel, const std::string text)
{
- if (!text.size())
+ if (!text.size()) {
return;
+ }
- NetClient *client = player->client();
-
- if (client) {
- // this player is a network client, send message over network
- server_network->send_message(client, channel, text);
+ NetClient *client = player->client();
+ if (client) {
+ // this player is a network client, send message over network
+ server_network->send_message(client, channel, text);
- } else if (player == localplayer()) {
- // local player, send message to the local application
- application()->notify_message(channel, text);
- }
+ } else if (player == localplayer()) {
+ // local player, send message to the local application
+ application()->notify_message(channel, text);
+ }
}
// server broadcasts a message on a specified channel to all players