bsp_loader: fix utf8 brush model

This commit is contained in:
Quaternions 2025-03-11 18:13:39 -07:00
parent 78c53ae429
commit 3d5e76f078

@ -53,9 +53,9 @@ fn add_brush<'a>(
rendercolor.b as f32
])/255.0).extend(1.0);
match model.split_at(1){
match model.chars().next(){
// The first character of brush.model is '*'
("*",id_str)=>match id_str.parse(){
Some('*')=>match model[1..].parse(){
Ok(mesh_id)=>{
let mesh=model::MeshId::new(mesh_id);
world_models.push(