aboutsummaryrefslogtreecommitdiff
path: root/src/portmod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/portmod.rs')
-rw-r--r--src/portmod.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/portmod.rs b/src/portmod.rs
index 9100570..a271ead 100644
--- a/src/portmod.rs
+++ b/src/portmod.rs
@@ -1,3 +1,4 @@
+#[derive(Debug)]
pub enum Slide
{
Up(u8),
@@ -6,6 +7,7 @@ pub enum Slide
FineDown(u8)
}
+#[derive(Debug)]
pub enum Effect
{
SetSpeed(u8),
@@ -68,7 +70,7 @@ impl Effect
pub fn from_it_efx(f: (u8, u8)) -> Effect
{
let (efx, fxp) = f;
- match efx as char
+ match (efx + 'A' as u8 - 1) as char
{
'A' => Effect::SetSpeed(fxp),
'B' => Effect::PosJump(fxp),