Commit b08d0a2d authored by mercury233's avatar mercury233

add more debug logs

parent 674785f1
...@@ -298,6 +298,8 @@ namespace WindBot.Game ...@@ -298,6 +298,8 @@ namespace WindBot.Game
string otherName = (player == 0) ? _room.Names[1] : _room.Names[0]; string otherName = (player == 0) ? _room.Names[1] : _room.Names[0];
if (player < 4) if (player < 4)
Logger.DebugWriteLine(otherName + " say to " + myName + ": " + message); Logger.DebugWriteLine(otherName + " say to " + myName + ": " + message);
else
Logger.DebugWriteLine("System message(" + player + "): " + message);
} }
private void OnErrorMsg(BinaryReader packet) private void OnErrorMsg(BinaryReader packet)
...@@ -308,6 +310,7 @@ namespace WindBot.Game ...@@ -308,6 +310,7 @@ namespace WindBot.Game
packet.ReadByte(); packet.ReadByte();
packet.ReadByte(); packet.ReadByte();
int pcode = packet.ReadInt32(); int pcode = packet.ReadInt32();
Logger.DebugWriteLine("Error message received: " + msg + ", code: " + pcode);
if (msg == 2) //ERRMSG_DECKERROR if (msg == 2) //ERRMSG_DECKERROR
{ {
int code = pcode & 0xFFFFFFF; int code = pcode & 0xFFFFFFF;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment