| 401 | } |
| 402 | |
| 403 | bool RemoveDestinationQuads(const float aaGameArea[2][2], const CQuad *pQuads, const int NumQuads, const CMapItemGroup *pLayerGroup, CQuad *pDestQuads, int &QuadsCounter) |
| 404 | { |
| 405 | bool DataChanged = false; |
| 406 | |
| 407 | for(int i = 0; i < NumQuads; i++) |
| 408 | { |
| 409 | CMapObject Ob = CreateMapObject(pLayerGroup, fx2f(pQuads[i].m_aPoints[4].x), fx2f(pQuads[i].m_aPoints[4].y), 0, 0); |
| 410 | |
| 411 | if(GetVisibleArea(aaGameArea, Ob)) |
| 412 | { |
| 413 | DataChanged = true; |
| 414 | continue; |
| 415 | } |
| 416 | |
| 417 | pDestQuads[QuadsCounter] = pQuads[i]; |
| 418 | QuadsCounter++; |
| 419 | } |
| 420 | |
| 421 | return DataChanged; |
| 422 | } |
| 423 | |
| 424 | bool InsertDestinationQuads(const float aaaGameAreas[2][2][2], const CQuad *pQuads, const int NumQuads, const CMapItemGroup *apLayerGroups[2], CQuad *pDestQuads, int &QuadsCounter) |
| 425 | { |
no test coverage detected