Skip to content

Commit 218cceb

Browse files
authored
Merge pull request #854 from ReactiveDrop/buttonhold-action-fix
fix button hold action panel disappearing
2 parents a700434 + d2a3774 commit 218cceb

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/game/client/swarm/c_asw_button_area.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,9 @@ bool C_ASW_Button_Area::GetUseAction( ASWUseAction &action, C_ASW_Inhabitable_NP
174174
action.fProgress = ( ( gpGlobals->curtime - pPlayer->m_flUseKeyDownTime ) - 0.2f ) / ( m_flHoldTime - 0.2f );
175175
action.fProgress = clamp<float>( action.fProgress, 0.0f, 1.0f );
176176
action.bNoFadeIfSameUseTarget = true;
177-
action.bShowUseKey = false;
178-
}
179-
else
180-
{
181-
action.bShowHoldButtonUseKey = true;
182177
}
178+
179+
action.bShowHoldButtonUseKey = true;
183180
}
184181
}
185182

0 commit comments

Comments
 (0)