mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-05 20:45:49 +01:00
signature change: return void instead of always returning true
This commit is contained in:
parent
4835afbe4a
commit
92fd048eef
2 changed files with 7 additions and 10 deletions
|
@ -680,12 +680,11 @@ CookieRef::handleEvents()
|
||||||
case XWA_SEND_CONNRSP:
|
case XWA_SEND_CONNRSP:
|
||||||
{
|
{
|
||||||
HostID hid;
|
HostID hid;
|
||||||
if ( increasePlayerCounts( &evt, false, &hid, &devID ) ) {
|
increasePlayerCounts( &evt, false, &hid, &devID );
|
||||||
setAllConnectedTimer();
|
setAllConnectedTimer();
|
||||||
sendResponse( &evt, true, &devID );
|
sendResponse( &evt, true, &devID );
|
||||||
setAckTimer( hid );
|
setAckTimer( hid );
|
||||||
}
|
}
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case XWA_NOTEACK:
|
case XWA_NOTEACK:
|
||||||
|
@ -911,7 +910,7 @@ CookieRef::send_stored_messages( HostID dest, const AddrInfo* addr )
|
||||||
}
|
}
|
||||||
} /* send_stored_messages */
|
} /* send_stored_messages */
|
||||||
|
|
||||||
bool
|
void
|
||||||
CookieRef::increasePlayerCounts( CRefEvent* evt, bool reconn, HostID* hidp,
|
CookieRef::increasePlayerCounts( CRefEvent* evt, bool reconn, HostID* hidp,
|
||||||
DevIDRelay* devIDp )
|
DevIDRelay* devIDp )
|
||||||
{
|
{
|
||||||
|
@ -996,8 +995,6 @@ CookieRef::increasePlayerCounts( CRefEvent* evt, bool reconn, HostID* hidp,
|
||||||
|
|
||||||
logf( XW_LOGVERBOSE1, "%s: here=%d; total=%d", __func__,
|
logf( XW_LOGVERBOSE1, "%s: here=%d; total=%d", __func__,
|
||||||
m_nPlayersHere, m_nPlayersSought );
|
m_nPlayersHere, m_nPlayersSought );
|
||||||
|
|
||||||
return true;
|
|
||||||
} /* increasePlayerCounts */
|
} /* increasePlayerCounts */
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -236,7 +236,7 @@ class CookieRef {
|
||||||
const DevIDRelay* devID );
|
const DevIDRelay* devID );
|
||||||
void sendAnyStored( const CRefEvent* evt );
|
void sendAnyStored( const CRefEvent* evt );
|
||||||
void initPlayerCounts( const CRefEvent* evt );
|
void initPlayerCounts( const CRefEvent* evt );
|
||||||
bool increasePlayerCounts( CRefEvent* evt, bool reconn, HostID* hidp,
|
void increasePlayerCounts( CRefEvent* evt, bool reconn, HostID* hidp,
|
||||||
DevIDRelay* devID );
|
DevIDRelay* devID );
|
||||||
void updateAck( HostID hostID, bool keep );
|
void updateAck( HostID hostID, bool keep );
|
||||||
void dropPending( int seed );
|
void dropPending( int seed );
|
||||||
|
|
Loading…
Add table
Reference in a new issue