Fix some crashes

This commit is contained in:
Michael Huebner 2025-03-25 15:11:41 +01:00
parent 50cc8c2cfe
commit 84dbd488b4
2 changed files with 2 additions and 7 deletions

View file

@ -228,14 +228,14 @@ impl Board {
let distance = 20.0;
let white_start_slots = (16..=16)
let white_start_slots = (-16..=16)
.step_by(4)
.map(|x| vec2(x as f32, distance))
.collect::<Vec<_>>()
.try_into()
.unwrap();
let black_start_slots = (16..=16)
let black_start_slots = (-16..=16)
.step_by(4)
.map(|x| vec2(x as f32, -distance))
.collect::<Vec<_>>()

View file

@ -4,7 +4,6 @@ mod objects;
mod simple_ai;
use anyhow::Result;
use assetpath::AssetPath;
use engine::prelude::*;
use game::MillGame;
@ -25,10 +24,6 @@ fn create_engine(world_builder: &mut WorldBuilder) -> Result<()> {
create_info.resource_base_path = "resources".to_string();
create_info.gui_info.font = Font::Path(AssetPath::from(("resources", "ExportedFont.png")));
create_info.gui_info.resource_directory =
AssetPath::from((create_info.resource_base_path.as_str(), "")).into();
create_info.graphics_info.render_scale = 1.0;
create_info.graphics_info.vsync = true;
create_info.graphics_info.sample_count = VK_SAMPLE_COUNT_4_BIT;