aboutsummaryrefslogtreecommitdiffstats
path: root/src/server.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/server.rs')
-rw-r--r--src/server.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server.rs b/src/server.rs
index d9f2653..e3d5a72 100644
--- a/src/server.rs
+++ b/src/server.rs
@@ -198,7 +198,7 @@ fn imperative_attack_approach(
) {
for (id, mut imperative) in players.iter_mut() {
match *imperative {
- Imperative::Attack(target_player) => {
+ Imperative::Attack(AttackKey::A, target_player) => {
let Some(entity) = entity_map.0.get(&id.0) else {
*imperative = Imperative::Idle;
return;
@@ -242,7 +242,7 @@ fn imperative_attack_attack(
) {
for (id, mut imperative) in players.iter_mut() {
match *imperative {
- Imperative::Attack(target_player) => {
+ Imperative::Attack(AttackKey::A, target_player) => {
let Some(entity) = entity_map.0.get(&id.0) else {
*imperative = Imperative::Idle;
return;