From a010f94390422eefa366a5f390c1f9e3ccc66fd5 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 24 May 2008 10:10:37 +0000 Subject: text_length functions, improved lighting, r_bbox draws bounding boxes --- src/core/application.cc | 4 ++-- src/core/gameserver.cc | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'src/core') 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:: 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) -- cgit v1.2.3