Server list is now sent from db rather than hard coded.

This commit is contained in:
Filip Maj 2015-09-03 01:02:55 -04:00
parent 091166b41a
commit a65e81273b
3 changed files with 16 additions and 14 deletions

View file

@ -206,8 +206,9 @@ namespace FFXIVClassic_Lobby_Server
world.address = address;
world.port = port;
world.listPosition = listPosition;
uint result = ((numChars / maxChars) *0xFF) & 0xFF;
uint result = (uint)(((float)numChars / (float)maxChars) * (float)100);
world.population = (ushort)result;
world.isActive = isActive;
worldList.Add(world);
}