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>2009-01-25 17:58:12 +0000
committerStijn Buys <ingar@osirion.org>2009-01-25 17:58:12 +0000
commit60749486f978b8220b707541cf478fc87d8d0b36 (patch)
treea943e04276092f6f47547509238f208432bec846 /src/core
parentf584439abb26f934632089b6333a4fd47c29d3ef (diff)
fix dedicated server chat messages
Diffstat (limited to 'src/core')
-rw-r--r--src/core/gameserver.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/gameserver.cc b/src/core/gameserver.cc
index f7838a4..fc7a814 100644
--- a/src/core/gameserver.cc
+++ b/src/core/gameserver.cc
@@ -324,6 +324,11 @@ void GameServer::broadcast(const Message::Channel channel, const std::string tex
player->message(channel, text);
}
}
+
+ // console is not in the player list
+ if (Cvar::sv_dedicated->value()) {
+ localplayer()->message(channel, text);
+ }
}
// broadcast a sound event to all players