File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -169,13 +169,14 @@ s32 NetManager::getTimeDiff() {
169169
170170bool NetManager::isConnectionStateIdleOrInMM () {
171171 bool idleOrMM = false ;
172- ConnectionState connState = getConnectionState ();
173172
174- // had to write it slightly weird to match
175- if (connState >= CONNECTION_STATE_IDLE &&
176- CONNECTION_STATE_IN_MM >= connState) {
173+ switch ( getConnectionState ()) {
174+ case CONNECTION_STATE_IDLE:
175+ case CONNECTION_STATE_IN_MM:
177176 idleOrMM = true ;
177+ break ;
178178 }
179+
179180 return idleOrMM;
180181}
181182
@@ -191,8 +192,8 @@ bool NetManager::isConnectionStateIdle() {
191192bool NetManager::hasFoundMatch () {
192193 bool inMatch = false ;
193194
194- bool isMyAidInMatch = (( 1 << m_matchMakingInfos[m_currMMInfo].m_myAid ) &
195- m_matchMakingInfos[m_currMMInfo].m_fullAidBitmap ) ;
195+ bool isMyAidInMatch = (1 << m_matchMakingInfos[m_currMMInfo].m_myAid ) &
196+ m_matchMakingInfos[m_currMMInfo].m_fullAidBitmap ;
196197 // were in a match if my aid is in the room and we have connected to another
197198 // console
198199 if (isMyAidInMatch &&
You can’t perform that action at this time.
0 commit comments