aboutsummaryrefslogtreecommitdiff
path: root/util.h
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 /util.h
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 'util.h')
-rw-r--r--util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/util.h b/util.h
index ef2f749..cdfc798 100644
--- a/util.h
+++ b/util.h
@@ -53,7 +53,12 @@ static void set_resource_string(OBJECT *tree, short obj, const char *string)
long addr;
/* What a freakin' nightmare... */
+#ifdef PCGEM
+ addr = tree[obj].ob_spec;
+#else
addr = tree[obj].ob_spec.index;
+#endif
+
strcpy((char *)addr, string);
}