| 149 | } |
| 150 | |
| 151 | bool OpenMaps(IStorage *pStorage, const char aaMapNames[3][64], CDataFileReader aInputMaps[2], CDataFileWriter &OutputMap) |
| 152 | { |
| 153 | for(int i = 0; i < 2; i++) |
| 154 | { |
| 155 | if(!aInputMaps[i].Open(pStorage, aaMapNames[i], IStorage::TYPE_ABSOLUTE)) |
| 156 | { |
| 157 | dbg_msg("map_replace_area", "ERROR: unable to open map '%s'", aaMapNames[i]); |
| 158 | return false; |
| 159 | } |
| 160 | } |
| 161 | |
| 162 | if(!OutputMap.Open(pStorage, aaMapNames[2], IStorage::TYPE_ABSOLUTE)) |
| 163 | { |
| 164 | dbg_msg("map_replace_area", "ERROR: unable to open map '%s'", aaMapNames[2]); |
| 165 | return false; |
| 166 | } |
| 167 | |
| 168 | return true; |
| 169 | } |
| 170 | |
| 171 | void SaveOutputMap(CDataFileReader &InputMap, CDataFileWriter &OutputMap) |
| 172 | { |
no test coverage detected