Commit e2db11d3 authored by SherryChaos's avatar SherryChaos

player icon bug fixing

parent e589390d
......@@ -5270,7 +5270,10 @@ namespace MDPro3
{
if (condition == Condition.Duel)
{
var selfType = Program.I().room.selfType;
if (player0Name.text == name_0)
{
if(selfType == 0 || selfType == 2)
{
player0Frame.material = Appearance.duelFrameMat0;
player0Frame.sprite = Appearance.duelFace0;
......@@ -5280,6 +5283,20 @@ namespace MDPro3
player0Frame.material = Appearance.duelFrameMat0Tag;
player0Frame.sprite = Appearance.duelFace0Tag;
}
}
else
{
if (selfType == 0 || selfType == 2)
{
player0Frame.material = Appearance.duelFrameMat0Tag;
player0Frame.sprite = Appearance.duelFace0Tag;
}
else
{
player0Frame.material = Appearance.duelFrameMat0;
player0Frame.sprite = Appearance.duelFace0;
}
}
if (player1Name.text == name_1)
{
player1Frame.material = Appearance.duelFrameMat1;
......
......@@ -582,16 +582,16 @@ namespace MDPro3
{
if (selfType == player)
position = PlayerPosition.Me;
else if ((selfType == 0 && player == 1)
|| (selfType == 1 && player == 0)
|| (selfType == 2 && player == 3)
|| (selfType == 3 && player == 2))
else if ((selfType + player) % 4 == 1)
position = PlayerPosition.MyTag;
else if (player == 0 || player == 2)
else
{
if (player == 0 || player == 2)
position = PlayerPosition.Op;
else
position = PlayerPosition.OpTag;
}
}
else
{
if (player == 0)
......
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