From 41ad1e4c9e2a70d0a8811f4b035f0d3018045e61 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 19 Feb 2008 17:37:01 +0000 Subject: client-to-server connection --- src/core/commandbuffer.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/core/commandbuffer.cc') 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() -- cgit v1.2.3