summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/engines.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/engines.rs b/src/modules/engines.rs
index 10e4c85..4741a03 100644
--- a/src/modules/engines.rs
+++ b/src/modules/engines.rs
@@ -39,6 +39,12 @@ impl Engines {
-1.0 * m_v.1 * 0.05,
-1.0 * m_v.2 * 0.05);
},
+ b"s\n" => {
+ let m_v = ship.velocity;
+ acceleration = (-1.0 * m_v.0,
+ -1.0 * m_v.1,
+ -1.0 * m_v.2);
+ },
b"c\n" => {
match target {
Some(target) => {