Commit ccfa5109 authored by SherryChaos's avatar SherryChaos

bug fix

parent f484c5dd
......@@ -342,6 +342,8 @@ namespace MDPro3
public string GetSameCode(ItemType type, string mapCode)
{
if (mapCode.Length != 7)
mapCode = "1090001";
if (type == ItemType.Grave)
return "110" + mapCode.Substring(3);
else if (type == ItemType.Stand)
......@@ -366,6 +368,13 @@ namespace MDPro3
}
return item.path;
}
if(type == ItemType.Mat)
{
if (player == 0)
lastMat0 = code;
else
lastMat1 = code;
}
if (code == sameCode.ToString())
code = GetSameCode(type, player == 0 ? lastMat0 : lastMat1);
......
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