Fix warning: unnecessary parentheses around function argument, new in nightly-2018-02-15
This commit is contained in:
parent
cb1d282381
commit
d6fa1d0a0b
|
@ -198,7 +198,7 @@ impl ecs::System for PlayerRenderer {
|
|||
};
|
||||
let offset_matrix = Matrix4::from(Decomposed {
|
||||
scale: 1.0,
|
||||
rot: Quaternion::from_angle_y(Rad::new((PI + rotation.yaw as f32))),
|
||||
rot: Quaternion::from_angle_y(Rad::new(PI + rotation.yaw as f32)),
|
||||
disp: offset,
|
||||
});
|
||||
|
||||
|
|
|
@ -958,8 +958,8 @@ fn calculate_light(snapshot: &world::Snapshot, orig_x: i32, orig_y: i32, orig_z:
|
|||
let mut sky_light = 0u32;
|
||||
let mut count = 0;
|
||||
|
||||
let s_block_light = max(((s_block_light as i8) - 8), 0) as u8;
|
||||
let s_sky_light = max(((s_sky_light as i8) - 8), 0) as u8;
|
||||
let s_block_light = max((s_block_light as i8) - 8, 0) as u8;
|
||||
let s_sky_light = max((s_sky_light as i8) - 8, 0) as u8;
|
||||
|
||||
let dx = (ox as f64) * 0.6;
|
||||
let dy = (oy as f64) * 0.6;
|
||||
|
|
Loading…
Reference in New Issue