void MapReader1800::read_autofilters(CMap& map, BinaryFile& mapfile) { // TODO: handle read fail int32_t iAutoFilterValues[NUM_AUTO_FILTERS + 1]; mapfile.read_i32_array(iAutoFilterValues, NUM_AUTO_FILTERS + 1); for (short iFilter = 0; iFilter < NUM_AUTO_FILTERS; iFilter++) map.fAutoFilter[iFilter] = iAutoFilterValues[iFilter] > 0; }
void MapReader1702::read_autofilters(CMap& map, BinaryFile& mapfile) { int32_t iAutoFilterValues[9]; mapfile.read_i32_array(iAutoFilterValues, 9); for (short iFilter = 0; iFilter < 8; iFilter++) map.fAutoFilter[iFilter] = iAutoFilterValues[iFilter] > 0; for (short iFilter = 8; iFilter < NUM_AUTO_FILTERS; iFilter++) map.fAutoFilter[iFilter] = false; //Read density and don't do anything with it at the moment //int iDensity = iAutoFilterValues[8]; }