MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / checkForCompleteDownloads

Function checkForCompleteDownloads

src/bzrobots/botplaying.cpp:1754–1771  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1752
1753
1754bool checkForCompleteDownloads(void) {
1755 // check if we are waiting for initial texture downloading
1756 if (!Downloads::instance().requestFinalized()) {
1757 return false;
1758 }
1759
1760 // downloading is terminated. go!
1761 Downloads::instance().finalizeDownloads();
1762 if (downloadingData) {
1763 downloadingData = false;
1764 return true;
1765 }
1766 else {
1767 //setSceneDatabase();
1768 }
1769
1770 return false;
1771}
1772
1773void doEnergySaver(void) {
1774 // always cap out at 200 fps unless a limit is set.

Callers 1

playingLoopFunction · 0.70

Calls 2

requestFinalizedMethod · 0.80
finalizeDownloadsMethod · 0.80

Tested by

no test coverage detected