Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/application.cc4
-rw-r--r--src/core/gameserver.cc8
2 files changed, 8 insertions, 4 deletions
diff --git a/src/core/application.cc b/src/core/application.cc
index db97af8..ac836df 100644
--- a/src/core/application.cc
+++ b/src/core/application.cc
@@ -282,8 +282,8 @@ void Application::frame(float seconds)
application_time += seconds;
// don't run zero lenght time frames
- if (seconds == 0.0f)
- return;
+ //if (seconds == 0.0f)
+ // return;
if (!connected())
return;
diff --git a/src/core/gameserver.cc b/src/core/gameserver.cc
index 85c00ab..7e03c61 100644
--- a/src/core/gameserver.cc
+++ b/src/core/gameserver.cc
@@ -119,7 +119,7 @@ void GameServer::list_players(Player *player)
int count = 0;
if (!Cvar::sv_dedicated->value()) {
- msgstr << setw(3) << localplayer()->id() << setw(16) << localplayer()->name();
+ msgstr << setw(3) << localplayer()->id() << aux::spaces(localplayer()->name(), 24);
send(player, msgstr.str());
count++;
}
@@ -128,7 +128,7 @@ void GameServer::list_players(Player *player)
std::list<NetClient *>:: iterator it;
for (it = server_network->clients.begin(); it != server_network->clients.end(); it++) {
msgstr.str("");
- msgstr << setw(3) << (*it)->player()->id() << setw(16) << (*it)->player()->name();
+ msgstr << setw(3) << (*it)->player()->id() << aux::spaces((*it)->player()->name(), 24);
send(player, msgstr.str());
count++;
}
@@ -269,6 +269,8 @@ void GameServer::player_connect(Player *player)
// notify the game module
server_module->player_connect(player);
+
+ // TODO manage player list
}
void GameServer::player_disconnect(Player *player)
@@ -280,6 +282,8 @@ void GameServer::player_disconnect(Player *player)
// notify the game module
server_module->player_disconnect(player);
+
+ // TODO manage player list
}
void GameServer::frame(float seconds)