




2
2



sudo mirrorselect -s3 -b10 -D -c Germany





1 let mut map_old = TwMap::parse_file(map1)?;
map_old.load()?;
let mut map_new = TwMap::parse_file(map2)?;
map_new.load()?;
let mut result = map_old.clone();
let map_old_game: &GameLayer = map_old.find_physics_layer().expect("couldn't find game layer");
let map_new_game: &GameLayer = map_new.find_physics_layer().expect("couldn't find game layer");
let tiles_old = match map_old_game.tiles() {
twmap::CompressedData::Compressed(_, _, _) => unreachable!(),
twmap::CompressedData::Loaded(x) => x,
};
let tiles_new = match map_new_game.tiles() {
twmap::CompressedData::Compressed(_, _, _) => unreachable!(),
twmap::CompressedData::Loaded(x) => x,
};
.load_conditionally(some_closure)?find_physics_layer_mut() (if that exists ^^)

unwrap[_mut]() on the CompressedData enum.








generics paying off































lazy_format!] is a format!-style macro which lazily formats its arguments. That is, rather than immediatly formatting them into a String (which is what format! does), it captures its arguments and returns an opaque struct with a Display implementation, so that the actual formatting can happen directly into its final destination buffer...





image_manipulation.cppdo? Dilate seems to overwrite transparent pixels with the average color of its neighbours. But I dont see why you would want to do this

image_manipulation.cppdo? Dilate seems to overwrite transparent pixels with the average color of its neighbours. But I dont see why you would want to do this 


basic_freeze it does


BPP argument
// Seems safe for BPP = 3, 4 which we use. clang-analyzer seems to
// assume being called with larger value. TODO: Can make this
// safer anyway.
How does it even make sense to apply this operation to RGB images?


























quit command, the menu background turns grey but the client doesn't quit as long as a red fullscreen warning is shown (e.g. when images have an unsupported format, or when the config cannot be saved). Seems like the warning that the config could not be saved is shown after the client is already in quitting/restarting state.
























DDNET_VERSION_NUMBER from DDNET_NETWORK_VERSION no matter what VERSION is. Provide get_network_version_number() which parses version to network version (can be useful for mods).
Fixes https://github.com/ddnet/ddnet/pull/7153#issuecomment-1717561522