| 494 | //============================================================================// |
| 495 | |
| 496 | static 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 | //============================================================================// |