mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 08:21:24 +02:00
remove notion of pool from assignment-server
This commit is contained in:
parent
ff6fd73187
commit
3149431e16
1 changed files with 23 additions and 36 deletions
|
@ -59,15 +59,6 @@ int main(int argc, const char* argv[]) {
|
|||
continue;
|
||||
}
|
||||
|
||||
bool eitherHasPool = ((*assignment)->getPool() || requestAssignment.getPool());
|
||||
bool bothHavePool = ((*assignment)->getPool() && requestAssignment.getPool());
|
||||
|
||||
// make sure there is a pool match for the created and requested assignment
|
||||
// or that neither has a designated pool
|
||||
if ((eitherHasPool && bothHavePool
|
||||
&& strcmp((*assignment)->getPool(), requestAssignment.getPool()) == 0)
|
||||
|| !eitherHasPool) {
|
||||
|
||||
// check if the requestor is on the same network as the destination for the assignment
|
||||
if (senderSocket.sin_addr.s_addr ==
|
||||
((sockaddr_in*) (*assignment)->getAttachedPublicSocket())->sin_addr.s_addr) {
|
||||
|
@ -92,10 +83,6 @@ int main(int argc, const char* argv[]) {
|
|||
|
||||
// stop looping - we've handed out an assignment
|
||||
break;
|
||||
} else {
|
||||
// push forward the iterator
|
||||
assignment++;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (senderData[0] == PACKET_TYPE_CREATE_ASSIGNMENT && packetVersionMatch(senderData)) {
|
||||
|
|
Loading…
Reference in a new issue