Commit c4a1335c authored by nanahira's avatar nanahira

simplify

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