Reverse sense of is-local bit so that on upgrade people don't see all

their local players marked as remote.
This commit is contained in:
Andy2 2011-03-08 18:43:29 -08:00
parent 678cbe1dea
commit 8ef3aa51b2

View file

@ -125,7 +125,7 @@ public class GameSummary {
private boolean isLocal( int indx ) {
int flag = 2 << (indx * 2);
return 0 != (giFlags & flag);
return 0 == (giFlags & flag);
}
private boolean isRobot( int indx ) {
@ -138,7 +138,7 @@ public class GameSummary {
Assert.assertNotNull( m_gi );
int result = 0;
for ( int ii = 0; ii < m_gi.nPlayers; ++ii ) {
if ( m_gi.players[ii].isLocal ) {
if ( ! m_gi.players[ii].isLocal ) {
result |= 2 << (ii * 2);
}
if ( m_gi.players[ii].isRobot() ) {