Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/gameserver.cc5
-rw-r--r--src/dedicated/dedicated.cc5
-rw-r--r--src/dedicated/dedicated.h3
3 files changed, 13 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
diff --git a/src/dedicated/dedicated.cc b/src/dedicated/dedicated.cc
index 15860a3..43c636e 100644
--- a/src/dedicated/dedicated.cc
+++ b/src/dedicated/dedicated.cc
@@ -92,6 +92,11 @@ void Dedicated::shutdown()
quit(0);
}
+void Dedicated::notify_message(const core::Message::Channel channel, const std::string &message)
+{
+ con_print << message << std::endl;
+}
+
void Dedicated::quit(int status)
{
core::Application::quit(status);
diff --git a/src/dedicated/dedicated.h b/src/dedicated/dedicated.h
index 4b1f584..f458895 100644
--- a/src/dedicated/dedicated.h
+++ b/src/dedicated/dedicated.h
@@ -29,6 +29,9 @@ public:
/// quit the server Application
virtual void quit(int status);
+
+ /// text notifications from the core
+ virtual void notify_message(const core::Message::Channel channel, const std::string &message);
};
} // namespace dedicated