MudEngine:

- Fixed command engine stalling when waiting for one users command to finish before starting another users command.
 - Commands are loaded into static List collections, but the Execute command itself is now no longer static.
 - Player.CommandSystem property added so each player has their own commandengine to process their input.
This commit is contained in:
Scionwest_cp 2010-08-01 20:50:21 -07:00
parent b3a672503f
commit 7c6ca6a2b9
5 changed files with 49 additions and 36 deletions

View file

@ -78,7 +78,7 @@ namespace MudEngine.Networking
}
} while (sub < 0);
players[sub].client = server.Accept();
players[sub].Initialize();
//players[sub].Initialize();
clientThreads[sub] = new Thread(ReceiveThread);
clientThreads[sub].Start((object)sub);
}
@ -86,7 +86,7 @@ namespace MudEngine.Networking
private void ReceiveThread(object obj)
{
int sub = (int)obj;
//players[sub].Initialize();
players[sub].Initialize();
while (stage == 2 && players[sub].IsActive)
{
players[sub].Receive(players[sub].ReadInput());