summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-09-21 19:32:30 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-09-21 19:32:30 +0100
commit9e95f0257f419c3c7fefdadcad4478b66aaf63b7 (patch)
tree09728709b1041ea0bac7eb3dcc61747bb1fea8e3 /rules.js
parent5309a1a27018495b5d10db5c5dc19a00c0c6d98a (diff)
download1989-dawn-of-freedom-9e95f0257f419c3c7fefdadcad4478b66aaf63b7.tar.gz
Debug steps vm_goto
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 53e7792..3afcf06 100644
--- a/rules.js
+++ b/rules.js
@@ -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();