use push_basic_input instead of actions.push

This commit is contained in:
Isse 2023-01-14 23:43:15 +01:00 committed by Joshua Barretto
parent 28ebdbbe74
commit a6b2f04518

View File

@ -2313,9 +2313,7 @@ impl<'a> AgentData<'a> {
{
agent.action_state.timers[ActionStateTimers::TimerOrganAura as usize] = 0.0;
} else if agent.action_state.timers[ActionStateTimers::TimerOrganAura as usize] < 1.0 {
controller
.actions
.push(ControlAction::basic_input(InputKind::Primary));
controller.push_basic_input(InputKind::Primary);
agent.action_state.timers[ActionStateTimers::TimerOrganAura as usize] +=
read_data.dt.0;
} else {