comparison 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
comparison
equal deleted inserted replaced
697:600eb0a69b25 698:05e0425a8bc5
881 SubInstruction::SetDeathFlags(death_flags) => { 881 SubInstruction::SetDeathFlags(death_flags) => {
882 let mut enemy = self.enemy.borrow_mut(); 882 let mut enemy = self.enemy.borrow_mut();
883 enemy.death_flags = death_flags; 883 enemy.death_flags = death_flags;
884 } 884 }
885 // 108 885 // 108
886 /*
887 SubInstruction::SetDeathCallback(sub) => { 886 SubInstruction::SetDeathCallback(sub) => {
888 let mut enemy = self.enemy.borrow_mut(); 887 let mut enemy = self.enemy.borrow_mut();
889 enemy.death_callback.enable(self.switch_to_sub, (sub,)); 888 enemy.death_callback = Some(sub);
890 } 889 }
891 */
892 890
893 // 109 891 // 109
894 SubInstruction::MemoryWriteInt(value, index) => { 892 SubInstruction::MemoryWriteInt(value, index) => {
895 unimplemented!("not again that damn foe corrupted my ret\\x41\\x41\\x41\\x41"); 893 unimplemented!("not again that damn foe corrupted my ret\\x41\\x41\\x41\\x41");
896 } 894 }