summaryrefslogtreecommitdiff
path: root/src/engine/command.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/command.rs')
-rw-r--r--src/engine/command.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/command.rs b/src/engine/command.rs
index 3ea0fbe..da7e1e0 100644
--- a/src/engine/command.rs
+++ b/src/engine/command.rs
@@ -12,8 +12,8 @@ impl fmt::Display for Command {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match *self {
Command::Nothing => write!(f, ""),
- Command::Build(p, b) => write!(f, "{},{},{}", p.x, p.y, b as u8),
- Command::Deconstruct(p) => write!(f, "{},{},3", p.x, p.y),
+ Command::Build(p, b) => write!(f, "{},{},{}", p.x(), p.y(), b as u8),
+ Command::Deconstruct(p) => write!(f, "{},{},3", p.x(), p.y()),
}
}
}