Updated changelog and fmt

This commit is contained in:
Joshua Barretto 2020-05-19 14:41:08 +01:00
parent 05e6df1b65
commit 5c3a08e450
2 changed files with 12 additions and 1 deletions

View File

@ -9,8 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added ### Added
- Added context-sensitive crosshair
### Changed ### Changed
- Improved camera aiming
### Removed ### Removed
## [0.6.0] - 2020-05-16 ## [0.6.0] - 2020-05-16

View File

@ -175,7 +175,14 @@ impl PlayState for SessionState {
.map(|cs| cs.is_aimed()) .map(|cs| cs.is_aimed())
.unwrap_or(false); .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<f32> = Vec3::from(view_mat.inverted() * -Vec4::unit_z()); let cam_dir: Vec3<f32> = Vec3::from(view_mat.inverted() * -Vec4::unit_z());