Skip to content

Commit

Permalink
Fix uboat texture
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathmagician8191 committed Sep 27, 2024
1 parent 62f46fe commit e48e81e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion midway/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ fn main() {
mobile = false;
kraken_targets.push(name.clone());
}
if distance < ship.stats.gun_range {
if !ship.submerged && distance < ship.stats.gun_range {
match ship.shoot(kraken) {
ShootingState::Sunk(location, damage) | ShootingState::Hit(location, damage) => {
let size = damage.powf(1.0 / 3.0) * 3.0;
Expand Down
Binary file modified resources/UBoat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e48e81e

Please sign in to comment.