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

@ -25,7 +25,7 @@ namespace MudEngine.Commands
{
if (player.Role == SecurityRoles.Admin)
{
for (int i = 0; i < player.ActiveGame.PlayerCollection.Count/*Length*/; i++)
for (int i = 0; i < player.ActiveGame.PlayerCollection.Length; i++)
player.ActiveGame.PlayerCollection[i].Save(player.ActiveGame.PlayerCollection[i].Name + ".dat");
player.ActiveGame.Server.EndServer();
player.ActiveGame.Server.Initialize(555, ref player.ActiveGame.PlayerCollection);