MudEngine:

- Reverted Server code back to using player arrays rather than List<> so that the server will actually start and run again.
This commit is contained in:
Scionwest_cp 2010-07-29 19:07:09 -07:00
parent 9b023a2092
commit 2152a139b0
5 changed files with 10 additions and 15 deletions

View file

@ -30,15 +30,15 @@ namespace MudEngine.Networking
stage = 0;
port = 0;
}
public bool Initialize(int p, ref List<BaseCharacter>/*BaseCharacter[]*/ pbs)
public bool Initialize(int p, ref /*List<BaseCharacter>*/BaseCharacter[] pbs)
{
if (stage != 0)
return false;
if (p <= 0)
return false;
port = p;
clientThreads = new Thread[pbs.Capacity/*Length*/];
players = pbs.ToArray();
players = pbs;
clientThreads = new Thread[players.Length];
stage++;
return true;
}