Commit c4a1335c authored by nanahira's avatar nanahira

simplify

parent b02d2bc4
...@@ -1779,17 +1779,9 @@ int Game::LocalPlayer(int player) const { ...@@ -1779,17 +1779,9 @@ int Game::LocalPlayer(int player) const {
return dInfo.isFirst ? pid : 1 - pid; return dInfo.isFirst ? pid : 1 - pid;
} }
int Game::OppositePlayer(int player) { int Game::OppositePlayer(int player) {
if(dInfo.isTag) { if(dInfo.isTag)
if(player == 0) return (player & 0x2) | (1 - (player & 0x1));
return 2; else
if(player == 1)
return 3;
if(player == 2)
return 0;
if(player == 3)
return 1;
return player;
} else
return 1 - player; return 1 - player;
} }
int Game::ChatLocalPlayer(int player) { int Game::ChatLocalPlayer(int player) {
......
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