diff options
Diffstat (limited to 'src/game/base')
-rw-r--r-- | src/game/base/shipdealer.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/game/base/shipdealer.cc b/src/game/base/shipdealer.cc index d825e2c..adb97ea 100644 --- a/src/game/base/shipdealer.cc +++ b/src/game/base/shipdealer.cc @@ -86,14 +86,13 @@ void ShipDealer::func_buy(core::Player *player, const std::string &args) // enable rcon buffering sys::ConsoleInterface::instance()->set_rcon(true); ShipModel::list(); - + // disable rcon buffering + sys::ConsoleInterface::instance()->set_rcon(false); + while (sys::ConsoleInterface::instance()->rconbuf().size()) { player->send((*sys::ConsoleInterface::instance()->rconbuf().begin())); sys::ConsoleInterface::instance()->rconbuf().pop_front(); } - - // disable rcon buffering - sys::ConsoleInterface::instance()->set_rcon(false); player->send("Usage: buy ship label"); return; |