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

Function copyToFloatArray

src/bzflag/AutoHunt.cpp:496–504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

494//============================================================================//
495
496static void copyToFloatArray(float array[LevelCount], const HuntInfo& hi) {
497 std::map<int, float>::const_iterator it;
498 for (it = hi.coords.begin(); it != hi.coords.end(); it++) {
499 const int level = it->first;
500 if ((level >= 0) && (level < LevelCount)) {
501 array[level] = it->second;
502 }
503 }
504}
505
506
507//============================================================================//

Callers 1

parseFunction · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected