forked from StrafesNET/strafe-project
bsp_loader: fix utf8 brush model
This commit is contained in:
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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user