rust/landgen/src/wavefront_collapse/generator.rs
branchtransitional_engine
changeset 16052 0fd23fc57947
parent 15956 c273908218f3
child 16053 3402b2185698
equal deleted inserted replaced
16051:2003b466b279 16052:0fd23fc57947
   160         let mut result = Vec::new();
   160         let mut result = Vec::new();
   161 
   161 
   162         for tile_description in self.template.tiles.iter() {
   162         for tile_description in self.template.tiles.iter() {
   163             if let Ok(mut tiles) = Self::load_image_tiles(parameters, tile_description) {
   163             if let Ok(mut tiles) = Self::load_image_tiles(parameters, tile_description) {
   164                 result.append(&mut tiles);
   164                 result.append(&mut tiles);
       
   165             } else {
       
   166                 eprintln!("Failed to load a tile!");
   165             }
   167             }
   166         }
   168         }
   167 
   169 
   168         result
   170         result
   169     }
   171     }