Skip to content

Commit

Permalink
Fixed code smells in TowerCombatTask
Browse files Browse the repository at this point in the history
  • Loading branch information
AlasdairS4698737 committed Sep 11, 2023
1 parent c795b9d commit 6a6575a
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,7 @@ private boolean isTargetVisible() {
private void changeFireRateInterval(int perMinute) {
float oldFireSpeed = 1/fireRateInterval;
float newFireSpeed = oldFireSpeed + perMinute/60f;
if (newFireSpeed == 0) {
return;
} else {
if (newFireSpeed != 0) {
fireRateInterval = 1 / newFireSpeed;
}
}
Expand Down

0 comments on commit 6a6575a

Please sign in to comment.