Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-02-21 21:01:17 +0000
committerStijn Buys <ingar@osirion.org>2008-02-21 21:01:17 +0000
commit71b6b902732bfc0c53033d58f91a6b1e70e8371f (patch)
tree0ff75879667ff985c9d69f8057727f6c805ad8b4 /src/core/commandbuffer.cc
parent8aa04fc836116a58f8ffd1e0c3539b9ea8a94ddf (diff)
more minor updates
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;
}