From 8774e65cc503318005f34c133cbaee21b18fc144 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 29 Nov 2010 16:04:03 +0000 Subject: Parse command line options after engine initialization. --- src/client/keyboard.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/client/keyboard.cc') 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); -- cgit v1.2.3