diff src/th06/enemy.rs @ 728:414f8611f344

ecl: Add support for bullet sounds, instruction 84.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 30 Oct 2019 16:27:43 +0100
parents c187e0a6b751
children b9928db975e1
line wrap: on
line diff
--- a/src/th06/enemy.rs
+++ b/src/th06/enemy.rs
@@ -209,7 +209,9 @@ pub(crate) struct BulletAttributes {
     pub(crate) bullet_type: i16,
     // zero: x32,
     pub(crate) flags: u32,
-    pub(crate) ins84_param: i32,
+
+    /// Which sound to play when the bullet gets fired.
+    pub sound: Option<u8>,
 }
 
 impl BulletAttributes {