Fix coding style

This commit is contained in:
Perttu Ahola 2014-11-01 22:55:43 +02:00
parent c551ab9626
commit 24ac1d7fbc
2 changed files with 5 additions and 10 deletions

View File

@ -841,14 +841,9 @@ void generate_voxel_physics_boxes(
VoxelInstance v_orig = volume_orig.getVoxelAt(x, y, z);
const interface::CachedVoxelDefinition *def =
voxel_reg->get_cached(v_orig);
if(!def)
if(!def){
throw Exception(ss_()+"Undefined voxel: "+itos(v_orig.get_id()));
}
uint8_t v = (def && def->physically_solid);
volume.setVoxelAt(x, y, z, v);
}