Commit 5b121266 authored by nanahira's avatar nanahira

fix

parent c4a1335c
......@@ -1779,10 +1779,8 @@ int Game::LocalPlayer(int player) const {
return dInfo.isFirst ? pid : 1 - pid;
}
int Game::OppositePlayer(int player) {
if(dInfo.isTag)
return (player & 0x2) | (1 - (player & 0x1));
else
return 1 - player;
auto player_side_bit = dInfo.isTag ? 0x2 : 0x1;
return player ^ player_side_bit;
}
int Game::ChatLocalPlayer(int player) {
if(player > 3)
......
Subproject commit 02254c8ce092e671d49a75e9d84554da83711e27
Subproject commit 9823d82dda9b4e601a8a870e180ad3768179e2ec
Subproject commit a36b4d2096131605246d3c37f52aeab07175304b
Subproject commit 59e5af144e6e35f842b1abb62bede801d5f5f005
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