Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/gameconnection.cc')
-rw-r--r--src/core/gameconnection.cc12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/core/gameconnection.cc b/src/core/gameconnection.cc
index 6090a52..4d2a745 100644
--- a/src/core/gameconnection.cc
+++ b/src/core/gameconnection.cc
@@ -68,7 +68,6 @@ void GameConnection::abort()
void GameConnection::forward(std::string const &cmdline)
{
-
if (!connection_network->connected())
return;
@@ -78,6 +77,17 @@ void GameConnection::forward(std::string const &cmdline)
connection_network->send(netmessage);
}
+void GameConnection::say(std::string const &args)
+{
+ if (!connection_network->connected())
+ return;
+
+ std::string netmessage("say ");
+ netmessage.append(args);
+ netmessage += '\n';
+ connection_network->send(netmessage);
+}
+
void GameConnection::frame(float seconds)
{
if (!running())