aboutsummaryrefslogtreecommitdiff
path: root/worm.c
diff options
context:
space:
mode:
authorJeffrey Armstrong <jeffrey.armstrong@approximatrix.com>2020-04-08 14:03:10 -0400
committerJeffrey Armstrong <jeffrey.armstrong@approximatrix.com>2020-04-08 14:03:10 -0400
commit0b89dd1d4ada50e2299af967dc10af2daf95bba1 (patch)
treed97e8b03ba23c26beefd1966faf5bef39c050265 /worm.c
parent2c76d28bb33ac533ef7c6c943543384d73e7f449 (diff)
downloadgemworm-0b89dd1d4ada50e2299af967dc10af2daf95bba1.zip
gemworm-0b89dd1d4ada50e2299af967dc10af2daf95bba1.tar.gz
Fixed Turbo C makefile to build scores code. Initial work at getting high scores running on PC.
Diffstat (limited to 'worm.c')
-rw-r--r--worm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/worm.c b/worm.c
index cc0e51a..f2859ec 100644
--- a/worm.c
+++ b/worm.c
@@ -118,7 +118,11 @@ TEDINFO *eted;
if(res == BOK) {
/* save! */
+#ifdef PCGEM
+ eted = (TEDINFO *)(newscore_box[TINITIALS].ob_spec);
+#else
eted = (TEDINFO *)(newscore_box[TINITIALS].ob_spec.index);
+#endif
add_high_score((char *)eted->te_ptext, score);
}
@@ -653,9 +657,11 @@ EVMULT_OUT evout;
case MSCORES:
hndl_scores();
break;
+#ifdef MABOUT
case MABOUT:
hndl_about();
break;
+#endif
}
menu_tnormal(app_menu, msg[3], 1);
break;