Commit e2db11d3 authored by SherryChaos's avatar SherryChaos

player icon bug fixing

parent e589390d
......@@ -5270,15 +5270,32 @@ namespace MDPro3
{
if (condition == Condition.Duel)
{
var selfType = Program.I().room.selfType;
if (player0Name.text == name_0)
{
player0Frame.material = Appearance.duelFrameMat0;
player0Frame.sprite = Appearance.duelFace0;
if(selfType == 0 || selfType == 2)
{
player0Frame.material = Appearance.duelFrameMat0;
player0Frame.sprite = Appearance.duelFace0;
}
else
{
player0Frame.material = Appearance.duelFrameMat0Tag;
player0Frame.sprite = Appearance.duelFace0Tag;
}
}
else
{
player0Frame.material = Appearance.duelFrameMat0Tag;
player0Frame.sprite = Appearance.duelFace0Tag;
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)
{
......
......@@ -582,15 +582,15 @@ 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)
position = PlayerPosition.Op;
else
position = PlayerPosition.OpTag;
{
if (player == 0 || player == 2)
position = PlayerPosition.Op;
else
position = PlayerPosition.OpTag;
}
}
else
{
......
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