File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ YetiStalactite::is_hanging() const
45
45
void
46
46
YetiStalactite::active_update (float dt_sec)
47
47
{
48
- if (state == STALACTITE_HANGING && !m_sticky)
48
+ if (is_hanging () && !m_sticky)
49
49
return ;
50
50
51
51
Stalactite::active_update (dt_sec);
55
55
YetiStalactite::after_editor_set ()
56
56
{
57
57
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 )
60
60
{
61
61
set_action (target_action);
62
62
}
@@ -69,6 +69,7 @@ YetiStalactite::update(float dt_sec)
69
69
if (get_state () == STATE_SQUISHED && check_state_timer ()) {
70
70
set_state (STATE_ACTIVE);
71
71
state = STALACTITE_HANGING;
72
+
72
73
// Attempt to minimize any potential collisions during this process.
73
74
set_action (" default" );
74
75
set_pos (m_start_position);
You can’t perform that action at this time.
0 commit comments