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:
parent
9b023a2092
commit
2152a139b0
5 changed files with 10 additions and 15 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue