MudEngine:

- Corrected CommandLogin to support the Player.Send/Receive methods.
 - Re-organized the Game class source code and added additional commenting.
 - Began adding code to remove un-wanted characters in the received byte stream in Player.Receive()
This commit is contained in:
Scionwest_cp 2010-08-01 17:34:59 -07:00
parent 942b038b1b
commit 29cdae3b1a
5 changed files with 199 additions and 129 deletions

View file

@ -112,8 +112,12 @@ namespace MudEngine.Networking
if (sub > 0 && sub < players./*Capacity*/Length)
{
clientThreads[sub].Abort();
if(players[sub].IsActive)
if (players[sub].IsActive)
{
Log.Write("Disconnecting player " + players[sub].Name);
players[sub].Disconnect();
Log.Write("Player disconnected.");
}
}
}