From 5c3a08e450afdb15ebe95d6c070efeb76f7e4eea Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Tue, 19 May 2020 14:41:08 +0100 Subject: [PATCH] Updated changelog and fmt --- CHANGELOG.md | 4 ++++ voxygen/src/session.rs | 9 ++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 45c8a9b226..5b21edd215 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,8 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- Added context-sensitive crosshair + ### Changed +- Improved camera aiming + ### Removed ## [0.6.0] - 2020-05-16 diff --git a/voxygen/src/session.rs b/voxygen/src/session.rs index 9ccd8c34ba..ff67858882 100644 --- a/voxygen/src/session.rs +++ b/voxygen/src/session.rs @@ -175,7 +175,14 @@ impl PlayState for SessionState { .map(|cs| cs.is_aimed()) .unwrap_or(false); - (is_aiming, if is_aiming { Vec3::unit_z() * 0.025 } else { Vec3::zero() }) + ( + is_aiming, + if is_aiming { + Vec3::unit_z() * 0.025 + } else { + Vec3::zero() + }, + ) }; let cam_dir: Vec3 = Vec3::from(view_mat.inverted() * -Vec4::unit_z());