Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/commandbuffer.cc')
-rw-r--r--src/core/commandbuffer.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/commandbuffer.cc b/src/core/commandbuffer.cc
index 5a7fbdb..831489f 100644
--- a/src/core/commandbuffer.cc
+++ b/src/core/commandbuffer.cc
@@ -64,7 +64,7 @@ void CommandBuffer::exec(std::string const &cmdline)
if (!(cmdstream >> command))
return;
- con_debug << "Executing '" << cmdline << "'\n";
+ //con_debug << "Executing '" << cmdline << "'\n";
// is it a function
Func *f = Func::find(command);
@@ -72,7 +72,7 @@ void CommandBuffer::exec(std::string const &cmdline)
std::string args;
char c;
if (cmdstream >> args) {
- while (cmdstream >> c)
+ while (cmdstream.get(c))
args += c;
}
if ((f->flags() & Func::Game)) {
@@ -93,7 +93,7 @@ void CommandBuffer::exec(std::string const &cmdline)
if (((cvar->flags() & Cvar::ReadOnly) == 0) && (cmdstream >> value)) {
// we're setting a new value
char c;
- while (cmdstream >> c)
+ while (cmdstream.get(c))
value += c;
(*cvar) = value;
}