diff options
author | Stijn Buys <ingar@osirion.org> | 2008-05-24 10:10:37 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-05-24 10:10:37 +0000 |
commit | a010f94390422eefa366a5f390c1f9e3ccc66fd5 (patch) | |
tree | 798f63addb6931fb08208927afff509185709c7c /src/core | |
parent | 4a4a5473b82d1f5b6f654cabac99272bce89854b (diff) |
text_length functions, improved lighting, r_bbox draws bounding boxes
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/application.cc | 4 | ||||
-rw-r--r-- | src/core/gameserver.cc | 8 |
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) |