Skip to content

Commit b3bc350

Browse files
committed
Code style in YetiStalactite
[ci skip]
1 parent 9cea5e0 commit b3bc350

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/badguy/yeti_stalactite.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ YetiStalactite::is_hanging() const
4545
void
4646
YetiStalactite::active_update(float dt_sec)
4747
{
48-
if (state == STALACTITE_HANGING && !m_sticky)
48+
if (is_hanging() && !m_sticky)
4949
return;
5050

5151
Stalactite::active_update(dt_sec);
@@ -55,8 +55,8 @@ void
5555
YetiStalactite::after_editor_set()
5656
{
5757
auto target_action = "yeti-stalactite";
58-
if (m_sprite->get_action() != target_action &&
59-
m_sprite->has_action(target_action))
58+
if (m_sprite->has_action(target_action) &&
59+
m_sprite->get_action() != target_action)
6060
{
6161
set_action(target_action);
6262
}
@@ -69,6 +69,7 @@ YetiStalactite::update(float dt_sec)
6969
if (get_state() == STATE_SQUISHED && check_state_timer()) {
7070
set_state(STATE_ACTIVE);
7171
state = STALACTITE_HANGING;
72+
7273
// Attempt to minimize any potential collisions during this process.
7374
set_action("default");
7475
set_pos(m_start_position);

0 commit comments

Comments
 (0)