1381 #endif |
1381 #endif |
1382 |
1382 |
1383 // copy sections of it to our datastructures. |
1383 // copy sections of it to our datastructures. |
1384 map_size = MapSize(); |
1384 map_size = MapSize(); |
1385 memcpy(_map_owner, m->map_owner, map_size); |
1385 memcpy(_map_owner, m->map_owner, map_size); |
1386 memcpy(_map2, m->map2, map_size); |
|
1387 memcpy(_map_type_and_height, m->map_type_and_height, map_size); |
1386 memcpy(_map_type_and_height, m->map_type_and_height, map_size); |
1388 memcpy(_map5, m->map5, map_size); |
1387 memcpy(_map5, m->map5, map_size); |
1389 for (i = 0; i != map_size; i++) { |
1388 for (i = 0; i != map_size; i++) { |
|
1389 _map2[i] = m->map2[i]; |
1390 _map3_lo[i] = m->map3[i] & 0xFF; |
1390 _map3_lo[i] = m->map3[i] & 0xFF; |
1391 _map3_hi[i] = m->map3[i] >> 8; |
1391 _map3_hi[i] = m->map3[i] >> 8; |
1392 } |
1392 } |
1393 memcpy(_map_extra_bits, m->map_extra, map_size / 4); |
1393 memcpy(_map_extra_bits, m->map_extra, map_size / 4); |
1394 |
1394 |