mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
prevent holding to time combo
This commit is contained in:
parent
02b29efbfc
commit
e4f2bf7ebf
@ -68,7 +68,7 @@ impl CharacterBehavior for Data {
|
|||||||
// Check inputs based on whether `needs_timing`
|
// Check inputs based on whether `needs_timing`
|
||||||
if self.needs_timing {
|
if self.needs_timing {
|
||||||
// Player must press at right time
|
// Player must press at right time
|
||||||
if data.inputs.primary.is_pressed()
|
if data.inputs.primary.is_just_pressed()
|
||||||
&& stage_time_active > Duration::from_millis(TIMING_WINDOW)
|
&& stage_time_active > Duration::from_millis(TIMING_WINDOW)
|
||||||
{
|
{
|
||||||
should_transition = true;
|
should_transition = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user