Commit 02a88f2b authored by mercury233's avatar mercury233

fix MSG_SELECT_SUM

parent 0bf87b7e
...@@ -573,6 +573,12 @@ namespace WindBot.Game ...@@ -573,6 +573,12 @@ namespace WindBot.Game
if (mode) if (mode)
{ {
// equal // equal
if (sum == 0 && min == 0)
{
return new List<ClientCard>();
}
if (min <= 1) if (min <= 1)
{ {
// try special level first // try special level first
......
...@@ -1316,9 +1316,11 @@ namespace WindBot.Game ...@@ -1316,9 +1316,11 @@ namespace WindBot.Game
{ {
result[index++] = 0; result[index++] = 0;
} }
for (int i = 0; i < selected.Count; ++i) int l = 0;
while (l < selected.Count)
{ {
result[index++] = (byte)selected[i].SelectSeq; result[index++] = (byte)selected[l].SelectSeq;
++l;
} }
BinaryWriter reply = GamePacketFactory.Create(CtosMessage.Response); BinaryWriter reply = GamePacketFactory.Create(CtosMessage.Response);
......
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