Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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);