Skip to main content

MAX_PAINT_CELLS

Constant MAX_PAINT_CELLS 

Source
pub const MAX_PAINT_CELLS: usize = 1_000_000;
Expand description

Upper bound for one paint operation (fill_rect, paint_line): keeps a bogus coordinate range from an agent or file from allocating without bound. Generous for real tilemaps (1000×1000 cells).