[go: up one dir, main page]

Add constness to functions that can have it

Increases perfomance and allows to define constants like:

const TILE_EMPTY: twmap::GameTile = GameTile::new(0, TileFlags::empty());

Found functions using cargo clippy -- -W clippy::missing_const_for_fn (1 false positive)

Also removed an unwrap and used an option for physics_group()

Edited by Edgar Luque

Merge request reports

Loading