| 251 | } |
| 252 | |
| 253 | const CMapItemGroup *GetLayerGroup(CDataFileReader &InputMap, const int LayerNumber) |
| 254 | { |
| 255 | int Start, Num; |
| 256 | InputMap.GetType(MAPITEMTYPE_GROUP, &Start, &Num); |
| 257 | |
| 258 | for(int i = 0; i < Num; i++) |
| 259 | { |
| 260 | CMapItemGroup *pItem = (CMapItemGroup *)InputMap.GetItem(Start + i); |
| 261 | if(LayerNumber >= pItem->m_StartLayer && LayerNumber <= pItem->m_StartLayer + pItem->m_NumLayers) |
| 262 | return pItem; |
| 263 | } |
| 264 | |
| 265 | return nullptr; |
| 266 | } |
| 267 | |
| 268 | void ReplaceAreaTiles(CDataFileReader aInputMaps[2], const float aaaGameAreas[][2][2], const CMapItemGroup *apLayerGroups[2], CMapItemLayer *apItem[2]) |
| 269 | { |
no test coverage detected