Commit cfa796e0 authored by mercury233's avatar mercury233 Committed by nanahira

fix replay rule

parent 1e05b207
......@@ -1431,8 +1431,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