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>2010-11-29 16:04:03 +0000
committerStijn Buys <ingar@osirion.org>2010-11-29 16:04:03 +0000
commit8774e65cc503318005f34c133cbaee21b18fc144 (patch)
tree907c120079597398abfda5d4791ce58573009e7c /src/client/keyboard.cc
parent2c7d185fdb03d17475deb9af1edaa82ffa51d4b6 (diff)
Parse command line options after engine initialization.
Diffstat (limited to 'src/client/keyboard.cc')
-rw-r--r--src/client/keyboard.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/client/keyboard.cc b/src/client/keyboard.cc
index 176e310..7486ff3 100644
--- a/src/client/keyboard.cc
+++ b/src/client/keyboard.cc
@@ -317,13 +317,12 @@ void Keyboard::load_binds()
char line[MAXCMDSIZE];
while (ifs.getline(line, MAXCMDSIZE - 1)) {
- if (line[0] && line[0] != '#' && line[0] != ';')
- core::cmd() << line << '\n';
+ if (line[0] && line[0] != '#' && line[0] != ';') {
+ core::CommandBuffer::exec(line);
+ }
}
-
- // execute commands in the buffer
- core::CommandBuffer::exec();
}
+
Key * Keyboard::release(unsigned int sym)
{
Key *key = find(sym);