Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbi committed Aug 30, 2024
1 parent 400b823 commit fe6acaf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/badguy/crusher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,7 @@ Crusher::eye_position(bool right) const
}
break;
case RECOVERING:
{
auto amplitude = static_cast<float>(m_sprite->get_width()) / 64.0f * 2.0f;
// Eyes spin while crusher is recovering, giving a dazed impression.
return Vector(sinf((right ? 1 : -1) * // X motion of each eye is opposite of the other.
Expand All @@ -665,6 +666,7 @@ Crusher::eye_position(bool right) const
(m_ic_size == NORMAL ? RECOVER_SPEED_NORMAL : RECOVER_SPEED_LARGE) + m_cooldown_timer * 13.0f) * //Phase factor due to cooldown timer.
amplitude - // Amplitude dependent on size.
amplitude); // Offset to keep eyes visible.
}
default:
log_debug << "Crusher in invalid state" << std::endl;
break;
Expand Down

0 comments on commit fe6acaf

Please sign in to comment.