diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/gameserver.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/gameserver.cc b/src/core/gameserver.cc index cd656ed..2027098 100644 --- a/src/core/gameserver.cc +++ b/src/core/gameserver.cc @@ -141,7 +141,7 @@ void GameServer::showtime() con_print << "Uptime " << minutes << ":" << setfill('0') << setw(2) << seconds << - " Server localtime " << setfill(' ') << setw(2) << syshours << ":" << setfill('0') << setw(2) << sysminutes << ":" << setw(2) << sysseconds << std::endl; + " Server localtime " << setfill(' ') << setw(2) << syshours << ":" << setfill('0') << setw(2) << sysminutes << ":" << setw(2) << sysseconds << setfill(' ') << std::endl; } Player *GameServer::find_player(std::string const search) @@ -301,17 +301,17 @@ void GameServer::exec(Player *player, std::string const & cmdline) } else if ((function->flags() & Func::Shared) == Func::Shared) { // enable rcon buffering - sys::ConsoleInterface::instance()->buffer_rcon(true); + console()->buffer_rcon(true); function->exec(args); char line[MAXCMDSIZE]; - while(sys::ConsoleInterface::instance()->buffer().getline(line, MAXCMDSIZE-1)) { + while(console()->buffer().getline(line, MAXCMDSIZE-1)) { send_rcon(player, std::string(line)); } // disable rcon buffering - sys::ConsoleInterface::instance()->buffer_rcon(false); + console()->buffer_rcon(false); return; } } |