Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-02-19 17:37:01 +0000
committerStijn Buys <ingar@osirion.org>2008-02-19 17:37:01 +0000
commit41ad1e4c9e2a70d0a8811f4b035f0d3018045e61 (patch)
treeabe7fa4544c22ba0cfa6375fd56f2e596f1bf626 /src/core/commandbuffer.cc
parent7daaf66869b7b9f85f71b1aa5e9a1b4c40710f33 (diff)
client-to-server connection
Diffstat (limited to 'src/core/commandbuffer.cc')
-rw-r--r--src/core/commandbuffer.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/commandbuffer.cc b/src/core/commandbuffer.cc
index 729c1db..5a7fbdb 100644
--- a/src/core/commandbuffer.cc
+++ b/src/core/commandbuffer.cc
@@ -11,6 +11,7 @@
#include "sys/sys.h"
#include "core/application.h"
#include "core/commandbuffer.h"
+#include "core/gameconnection.h"
#include "core/func.h"
#include "core/cvar.h"
@@ -102,8 +103,10 @@ void CommandBuffer::exec(std::string const &cmdline)
}
// TODO this must get forwarded to the server
-
- con_print << "Unknown command '" << command << "'\n";
+ if (connection())
+ connection()->forward(cmdline);
+ else
+ con_print << "Unknown command '" << command << "'\n";
}
void CommandBuffer::exec()