mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Small comment fixes
This commit is contained in:
parent
cc40058ae2
commit
374bd10e5d
@ -14,7 +14,6 @@
|
||||
//! when using the x macro defined here which requires this.
|
||||
|
||||
/// This provides a lowercase name and the component type.
|
||||
//#[rustfmt::skip]
|
||||
#[macro_export]
|
||||
macro_rules! synced_components {
|
||||
($macro:ident) => {
|
||||
|
@ -78,7 +78,7 @@ impl Energy {
|
||||
/// results.
|
||||
pub fn update_maximum(&mut self, maximum: u32) {
|
||||
self.maximum = maximum;
|
||||
// Clamp the current health to enforce the current <= maximum invariant.
|
||||
// Clamp the current energy to enforce the current <= maximum invariant.
|
||||
self.current = self.current.min(self.maximum);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user