diff options
Diffstat (limited to 'src/core/commandbuffer.cc')
-rw-r--r-- | src/core/commandbuffer.cc | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/core/commandbuffer.cc b/src/core/commandbuffer.cc index e97a00e..d1c9451 100644 --- a/src/core/commandbuffer.cc +++ b/src/core/commandbuffer.cc @@ -42,18 +42,17 @@ void func_set(std::string const &args) if (!(argstream >> varname)) return; - // we're setting a new value std::string value; - if (!(argstream >> value)) + if (!(argstream >> value)) { return; + } char c; while (argstream.get(c)) value += c; - Cvar *cvar = Cvar::set(varname.c_str(), value.c_str(), Cvar::Archive); - - con_print << cvar->name() << " " << cvar->str() << "\n"; + + con_print << " " << cvar->name() << " " << cvar->str() << "\n"; if (cvar->flags() && Cvar::Info) { localplayer()->player_dirty = true; @@ -153,7 +152,7 @@ void CommandBuffer::exec(std::string const &cmdline) } } - con_print << command << " " << cvar->str() << " ^N" << cvar->info() << "\n"; + con_print << " " << command << " " << cvar->str() << " ^N" << cvar->info() << "\n"; return; } @@ -253,7 +252,7 @@ void CommandBuffer::exec_file(std::string const & filename) return; } - con_debug << "Executing " << fn.c_str() << std::endl; + con_print << "Executing " << fn.c_str() << std::endl; char line[MAXCMDSIZE]; while (ifs.getline(line, MAXCMDSIZE-1)) { |