aboutsummaryrefslogtreecommitdiff
path: root/planetwars-rules/src/rules.rs
diff options
context:
space:
mode:
Diffstat (limited to 'planetwars-rules/src/rules.rs')
-rw-r--r--planetwars-rules/src/rules.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/planetwars-rules/src/rules.rs b/planetwars-rules/src/rules.rs
index 7c13e58..587098f 100644
--- a/planetwars-rules/src/rules.rs
+++ b/planetwars-rules/src/rules.rs
@@ -50,8 +50,7 @@ pub struct Dispatch {
impl PwState {
pub fn dispatch(&mut self, dispatch: &Dispatch) {
- let distance = self.planets[dispatch.origin]
- .distance(&self.planets[dispatch.target]);
+ let distance = self.planets[dispatch.origin].distance(&self.planets[dispatch.target]);
let origin = &mut self.planets[dispatch.origin];
origin.fleets[0].ship_count -= dispatch.ship_count;