Skip to content

Commit

Permalink
refactor: Let rocket collide AFTER start timer
Browse files Browse the repository at this point in the history
  • Loading branch information
PraxTube committed Nov 4, 2023
1 parent 33e9868 commit 718c63d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ace-of-the-heavens"
version = "0.2.3"
version = "0.2.4"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
3 changes: 3 additions & 0 deletions src/player/shooting/rocket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ pub fn disable_rockets(
if player.dodging {
continue;
}
if !rocket.start_timer.finished() {
continue;
}

let distance = Vec2::distance_squared(
player_transform.translation.truncate(),
Expand Down

0 comments on commit 718c63d

Please sign in to comment.