# HG changeset patch # User Emmanuel Gil Peyrot # Date 1566043779 -7200 # Node ID a35df65e0d57c3650f816df00b1eb8406729d1bd # Parent f5d85a6469753c2e6db4a173ac296572fff3d5af ecl_vm: stub PlaySound. diff --git a/src/th06/ecl_vm.rs b/src/th06/ecl_vm.rs --- a/src/th06/ecl_vm.rs +++ b/src/th06/ecl_vm.rs @@ -862,12 +862,10 @@ impl EclRunner { } // 106 - /* SubInstruction::PlaySound(index) => { let mut enemy = self.enemy.borrow_mut(); enemy.play_sound(index); } - */ // 107 SubInstruction::SetDeathFlags(death_flags) => { diff --git a/src/th06/enemy.rs b/src/th06/enemy.rs --- a/src/th06/enemy.rs +++ b/src/th06/enemy.rs @@ -359,6 +359,11 @@ impl Enemy { } } + /// Stubbed for now. + pub(crate) fn play_sound(&self, sound_index: i32) { + println!("Playing sound {}!", sound_index); + } + /// Run all interpolators and such, and update internal variables once per /// frame. pub fn update(&mut self) {