diff options
Diffstat (limited to 'src/core/commandbuffer.cc')
-rw-r--r-- | src/core/commandbuffer.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/commandbuffer.cc b/src/core/commandbuffer.cc index b34b04b..80e7e36 100644 --- a/src/core/commandbuffer.cc +++ b/src/core/commandbuffer.cc @@ -153,7 +153,9 @@ void CommandBuffer::exec(std::string const &cmdline) while (cmdstream.get(c)) args += c; } - if ((f->flags() & Func::Game)) { + + // console can not execute game functions, and neither should rcon + if ((f->flags() & Func::Game) && (Cvar::sv_dedicated->value() == 0)) { if (application()->connected()) { f->exec(game()->localplayer(), args); } |