diff src/th06/ecl_vm.rs @ 684:c8bb28961d31

ecl_vm: fixes for previous instructions
author Gauvain "GovanifY" Roussel-Tarbouriech <gauvain@govanify.com>
date Fri, 16 Aug 2019 23:53:03 +0200
parents 8c50a7b19425
children 11d7e4d6947a
line wrap: on
line diff
--- a/src/th06/ecl_vm.rs
+++ b/src/th06/ecl_vm.rs
@@ -612,14 +612,15 @@ impl EclRunner {
             }
 
             // 88
-            
+            /* 
             SubInstruction::AlterLaserAngle(laser_id, delta) => {
                 let mut enemy = self.enemy.borrow_mut();
                 if enemy.laser_by_id.contains_key(&laser_id) {
-                    let mut laser = enemy.laser_by_id.get(laser_id);
+                    let mut laser = enemy.laser_by_id.get(&laser_id);
                     laser.angle += self.get_f32(delta);
                 }
             }
+            */
             
             // 89
             /*
@@ -634,13 +635,15 @@ impl EclRunner {
             */
 
             // 90
+            /*
             SubInstruction::RepositionLaser(laser_id, ox, oy, oz) => {
                 let mut enemy = self.enemy.borrow_mut();
                 if enemy.laser_by_id.contains_key(&laser_id) {
-                    let mut laser = enemy.laser_by_id.get(laser_id);
+                    let mut laser = enemy.laser_by_id.get(&laser_id);
                     laser.set_base_pos(enemy.pos.x + ox, enemy.pos.y + oy, enemy.z + oz)
                 }
             }
+            */
             // 91
             // wat
             SubInstruction::LaserSetCompare(laser_id) => {