Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-10-15 20:33:15 +0000
committerStijn Buys <ingar@osirion.org>2008-10-15 20:33:15 +0000
commit1e0df536c2fae85c317ce9c3cc17603d5f98c911 (patch)
tree3ab262d51451cda3e926e9581b294f08d39031d9 /src/core
parent97fca172fd51270cebd5b722f861a6c753bd4d2a (diff)
moved client console into a Widget
Diffstat (limited to 'src/core')
-rw-r--r--src/core/application.cc4
-rw-r--r--src/core/gameserver.cc7
2 files changed, 4 insertions, 7 deletions
diff --git a/src/core/application.cc b/src/core/application.cc
index db4f338..f98d44e 100644
--- a/src/core/application.cc
+++ b/src/core/application.cc
@@ -230,7 +230,7 @@ void Application::init(int count, char **arguments)
Cvar::con_ansi = Cvar::get("con_ansi", "1", Cvar::Archive);
#endif
Cvar::con_ansi->set_info("[bool] console ANSI colors");
- sys::ConsoleInterface::instance()->set_ansi(Cvar::con_ansi->value());
+ sys::set_ansi(Cvar::con_ansi->value());
#ifdef _WIN32
// Initialize win32 socket library
@@ -302,8 +302,6 @@ void Application::shutdown()
void Application::quit(int status)
{
- console()->flush();
-
sys::quit(status);
}
diff --git a/src/core/gameserver.cc b/src/core/gameserver.cc
index 46c3624..e42d1b2 100644
--- a/src/core/gameserver.cc
+++ b/src/core/gameserver.cc
@@ -484,7 +484,6 @@ void GameServer::exec(Player *player, std::string const & cmdline)
Func *function = Func::find(command);
if (function ) {
-
std::string args;
if (cmdline.size() > command.size() +1 )
args.assign(cmdline.substr(command.size()+1));
@@ -499,9 +498,9 @@ void GameServer::exec(Player *player, std::string const & cmdline)
console()->set_rcon(true);
function->exec(args);
- char line[MAXCMDSIZE];
- while(console()->buffer().getline(line, MAXCMDSIZE-1)) {
- send(player, std::string(line));
+ while(console()->rconbuf().size()) {
+ send(player, (*console()->rconbuf().begin()));
+ console()->rconbuf().pop_front();
}
// disable rcon buffering