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-07-13 00:36:09 +0000
committerStijn Buys <ingar@osirion.org>2008-07-13 00:36:09 +0000
commit2e789cb9894ac5a9565013b134f1c1e51174f430 (patch)
tree3ea0c4d644eeeb38f11c26bf623b9be55602dbe1 /src/core
parent0121804ec5f9ac21f892d013806de01a5eddb109 (diff)
skyglobe
Diffstat (limited to 'src/core')
-rw-r--r--src/core/gameserver.cc8
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;
}
}