[odamex-bug-reporter] [Bug 708] server-launcher protocol problem: player info

  • From: odamex-bugtracker@xxxxxxxxxx
  • To: odamex-bug-reporter@xxxxxxxxxxxxx
  • Date: Thu, 09 Jun 2011 06:52:41 +0000

http://odamex.net/bugs/show_bug.cgi?id=708

--- Comment #1 from bond <bond@xxxxxxxxxx> 2011-06-09 06:52:41 UTC ---
i suggest these changes:

int numclients=0;
for (size_t i = 0; i < players.size(); ++i)
  if (players[i].ingame()) numclients++;

MSG_WriteByte(&ml_message, numclients);

for (size_t i = 0; i < players.size(); ++i)
{
  if (players[i].ingame())
  {... (write player data) }

-- 
Configure bugmail: http://odamex.net/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Other related posts: