Commit 2507ac03 authored by mercury233's avatar mercury233

fix replay rule

parent 00f83095
......@@ -1447,8 +1447,9 @@ namespace Percy
WriteUnicode(writer, playerData[1].name, 50);
WriteUnicode(writer, playerData[1].name, 50);
}
writer.Write((Int32)(opt >> 16));
BinaryWriter Rwriter = new BinaryWriter(new MemoryStream());
Rwriter.Write((byte)235);
Rwriter.Write((byte)YGOSharp.OCGWrapper.Enums.GameMessage.sibyl_name);
Rwriter.Write(stream.ToArray());
return ((MemoryStream)(Rwriter.BaseStream)).ToArray();
}
......
......@@ -199,6 +199,7 @@ public class selectReplay : WindowServantSP
returnValue.StartHand = reader.ReadInt32();
returnValue.DrawCount = reader.ReadInt32();
returnValue.opt = reader.ReadInt32();
Program.I().ocgcore.MasterRule = returnValue.opt >> 16;
for (int i = 0; i < 4; i++)
{
int count = reader.ReadInt32();
......@@ -223,6 +224,7 @@ public class selectReplay : WindowServantSP
returnValue.StartHand = reader.ReadInt32();
returnValue.DrawCount = reader.ReadInt32();
returnValue.opt = reader.ReadInt32();
Program.I().ocgcore.MasterRule = returnValue.opt >> 16;
for (int i = 0; i < 2; i++)
{
int count = reader.ReadInt32();
......
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