MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / updateQueryProgress

Function updateQueryProgress

Engine/source/app/net/serverQuery.cpp:1475–1491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1473//-----------------------------------------------------------------------------
1474
1475static void updateQueryProgress()
1476{
1477 if ( gPingList.size() )
1478 return;
1479
1480 char msg[64];
1481 U32 queriesLeft = gQueryList.size();
1482 dSprintf( msg, sizeof( msg ), "Querying servers: %d left...", queriesLeft );
1483
1484 // Query progress is 0.5 -> 1
1485 F32 progress = 0.5f;
1486 if ( gServerQueryCount )
1487 progress += ( F32( gServerQueryCount - queriesLeft ) / F32( gServerQueryCount * 2 ) );
1488
1489 //Con::errorf( ConsoleLogEntry::General, "Query progress - %d of %d left - progress = %.2f", queriesLeft, gServerQueryCount, progress );
1490 Con::executef( "onServerQueryStatus", "query", msg, Con::getFloatArg( progress ) );
1491}
1492
1493
1494//-----------------------------------------------------------------------------

Callers 2

updatePingProgressFunction · 0.85
handleGameInfoResponseFunction · 0.85

Calls 4

dSprintfFunction · 0.85
executefFunction · 0.85
getFloatArgFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected