aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-runtime/src/unit_combat.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/fparkan-runtime/src/unit_combat.rs')
-rw-r--r--crates/fparkan-runtime/src/unit_combat.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/fparkan-runtime/src/unit_combat.rs b/crates/fparkan-runtime/src/unit_combat.rs
index 3cf268ec..eaab747a 100644
--- a/crates/fparkan-runtime/src/unit_combat.rs
+++ b/crates/fparkan-runtime/src/unit_combat.rs
@@ -436,7 +436,7 @@ impl AutoDemoCombat {
});
}
Some(Ok(Some((remaining, false)))) => {
- if let Some(node) = hit.building_node {
+ if let Some(node) = hit.building_node() {
events.push(AutoDemoCombatEvent::BuildingHit {
shooter: flight.shooter,
target: hit.handle,
@@ -453,7 +453,7 @@ impl AutoDemoCombat {
Some(Err(_)) => "damage_error",
};
if self.report.unavailable(flight.shooter_identity, reason, now, 1) {
- eprintln!("unit_combat_contact object={} target={target} target_id={:?} node={:?} result={result:?}", flight.shooter_identity, target.original_id, hit.building_node);
+ eprintln!("unit_combat_contact object={} target={target} target_id={:?} node={:?} result={result:?}", flight.shooter_identity, target.original_id, hit.node);
}
}
}