diff options
Diffstat (limited to 'src/content')
| -rw-r--r-- | src/content/entities/entity_grenade.rs | 2 | ||||
| -rw-r--r-- | src/content/materials/liquid.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/content/entities/entity_grenade.rs b/src/content/entities/entity_grenade.rs index ab7aaa4..c13c239 100644 --- a/src/content/entities/entity_grenade.rs +++ b/src/content/entities/entity_grenade.rs @@ -20,7 +20,7 @@ impl EntityBehaviour for GrenadeEntityBehaviour { update_ctx: &mut EntityUpdateCtx, ctx: &mut SimCtx, delta_time: f32, - ) -> () { + ) { self.fuse -= delta_time; if self.fuse <= 0.0 { apply_explosion( diff --git a/src/content/materials/liquid.rs b/src/content/materials/liquid.rs index 6c3bdcd..23ba0fe 100644 --- a/src/content/materials/liquid.rs +++ b/src/content/materials/liquid.rs @@ -57,7 +57,7 @@ pub fn sim_update(ctx: &mut UpdateCtx) -> PostUpdateAction { } } - return PostUpdateAction::Settle; + PostUpdateAction::Settle // we didn't find a hole, so just move "randomly" on the same surface // TODO when to settle? |
