diff options
Diffstat (limited to 'src/core/commandbuffer.cc')
-rw-r--r-- | src/core/commandbuffer.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/commandbuffer.cc b/src/core/commandbuffer.cc index 2cf8d26..a38d9d0 100644 --- a/src/core/commandbuffer.cc +++ b/src/core/commandbuffer.cc @@ -52,6 +52,10 @@ void func_set(std::string const &args) Cvar *cvar = Cvar::set(varname.c_str(), value.c_str(), Cvar::Archive); con_print << cvar->name() << " " << cvar->str() << "\n"; + + if (cvar->flags() && Cvar::Info) { + localplayer()->player_dirty = true; + } return; } @@ -120,6 +124,10 @@ void CommandBuffer::exec(std::string const &cmdline) while (cmdstream.get(c)) value += c; (*cvar) = value; + + if (cvar->flags() && Cvar::Info) { + localplayer()->player_dirty = true; + } } con_print << command << " " << cvar->str() << "\n"; |