Performance improvements

This commit is contained in:
louis-e
2025-07-19 20:00:27 +02:00
parent 7e6ab21a9e
commit 2fd0244889
5 changed files with 121 additions and 114 deletions

View File

@@ -115,6 +115,7 @@ const INTERIOR2_LAYER2: [[char; 23]; 23] = [
];
/// Maps interior layout characters to actual block types for different floor layers
#[inline(always)]
pub fn get_interior_block(c: char, is_layer2: bool, wall_block: Block) -> Option<Block> {
match c {
' ' => None, // Nothing