changeset 220:a4b525fd1df6 src

Update TTN_REG (SPRM4) correctly.
author jcdutton
date Wed, 31 Dec 2003 21:50:05 +0000
parents f4c5d4d3c831
children 993dc61d2c4f
files vm.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/vm.c	Wed Dec 31 21:38:49 2003 +0000
+++ b/vm.c	Wed Dec 31 21:50:05 2003 +0000
@@ -1474,6 +1474,10 @@
       /*  Alien or Aliens has this != 1, I think. */
       /* assert(link_values.data2 == 1); */
       (vm->state).VTS_TTN_REG = link_values.data2;
+      /* TTN_REG (SPRM4), VTS_TTN_REG (SPRM5), TT_PGCN_REG (SPRM6) are linked, */
+      /* so if one changes, the others must change to match it. */
+      (vm->state).TTN_REG     = get_TT(vm, (vm->state).vtsN, (vm->state).VTS_TTN_REG);
+
       if(!set_MENU(vm, link_values.data3))
 	assert(0);
       link_values = play_PGC(vm);