- commit
- 15200d55a6ca585c740d17a0cfb6441818afc303
- parent
- b8626079cb9148060b3745755dc27d49ab67e112
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2023-03-28 06:15
fix compile warning
Diffstat
| M | src/weapons.rs | 2 | +- |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/weapons.rs b/src/weapons.rs
@@ -40,7 +40,7 @@ impl Weapon {
40 40 }
41 41 }
42 42
43 -1 pub fn move_straight(projectile: &mut Projectile, center: &Pos, speed: f32, dt: f32) {
-1 43 pub fn move_straight(projectile: &mut Projectile, _center: &Pos, speed: f32, dt: f32) {
44 44 match projectile.dir {
45 45 Dir::Up => projectile.p.y -= speed * dt,
46 46 Dir::Right => projectile.p.x += speed * dt,