diff options
author | Stijn Buys <ingar@osirion.org> | 2008-07-05 10:17:39 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-07-05 10:17:39 +0000 |
commit | e5aada2bf01e51753829215c0a3035aa8bd8135a (patch) | |
tree | 65d7f5145334db1be780f177b93feb054f35cc82 /src/core/commandbuffer.cc | |
parent | 68e4bbe3153f45139031a614541b2ccd80dd5526 (diff) |
ncurses updates, refactored say
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); } |