Mercurial > touhou
comparison src/th06/ecl_vm.rs @ 711:464c1b02a996
ecl_vm: Fix SetPosition.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 08 Sep 2019 18:09:43 +0200 |
parents | 81232dac8136 |
children | 5016c09e5d7c |
comparison
equal
deleted
inserted
replaced
710:377c241be559 | 711:464c1b02a996 |
---|---|
492 } | 492 } |
493 } | 493 } |
494 | 494 |
495 // 43 | 495 // 43 |
496 SubInstruction::SetPosition(x, y, z) => { | 496 SubInstruction::SetPosition(x, y, z) => { |
497 let mut enemy = self.enemy.borrow_mut(); | 497 let (x, y, z) = (self.get_f32(x), self.get_f32(y), self.get_f32(z)); |
498 enemy.set_pos(self.get_f32(x), self.get_f32(y), self.get_f32(z)); | 498 let mut enemy = self.enemy.borrow_mut(); |
499 enemy.set_pos(x, y, z); | |
499 } | 500 } |
500 // 44 | 501 // 44 |
501 /* | 502 /* |
502 SubInstruction::SetAngularSpeed(x, y, z) => { | 503 SubInstruction::SetAngularSpeed(x, y, z) => { |
503 // same as above, except for angular speed | 504 // same as above, except for angular speed |