diff src/th06/ecl_vm.rs @ 698:05e0425a8bc5

ecl_vm: enable SetDeathCallback.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 23 Aug 2019 02:37:21 +0200
parents 600eb0a69b25
children 2a60f12bd5bd
line wrap: on
line diff
--- a/src/th06/ecl_vm.rs
+++ b/src/th06/ecl_vm.rs
@@ -883,12 +883,10 @@ impl EclRunner {
                 enemy.death_flags = death_flags;
             }
             // 108
-            /*
             SubInstruction::SetDeathCallback(sub) => {
                 let mut enemy = self.enemy.borrow_mut();
-                enemy.death_callback.enable(self.switch_to_sub, (sub,));
+                enemy.death_callback = Some(sub);
             }
-            */
 
             // 109
             SubInstruction::MemoryWriteInt(value, index) => {