diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-09-21 19:32:30 +0100 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-09-21 19:32:30 +0100 |
commit | 9e95f0257f419c3c7fefdadcad4478b66aaf63b7 (patch) | |
tree | 09728709b1041ea0bac7eb3dcc61747bb1fea8e3 | |
parent | 5309a1a27018495b5d10db5c5dc19a00c0c6d98a (diff) | |
download | 1989-dawn-of-freedom-9e95f0257f419c3c7fefdadcad4478b66aaf63b7.tar.gz |
Debug steps vm_goto
-rw-r--r-- | rules.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3640,7 +3640,8 @@ function vm_goto_step(step) { console.log('vm_goto_step called, target:', step)
console.log('game.vm.ip', game.vp.ip)
for (let i = game.vm.ip; i < CODE[game.vm.fp].length; i++) {
- console.log('game.vm.ip', game.vm.ip)
+ console.log('i', i)
+ console.log('step', CODE[game.vm.fp][i][0])
if (CODE[game.vm.fp][i][0] === step) {
game.vm.ip = i;
vm_exec();
|