/home/cohrs/msg

This commit is contained in:
cohrs
2011-10-02 21:27:24 +00:00
parent c3d9fe0152
commit 12d0bd9057
+2 -2
View File
@@ -529,7 +529,7 @@ doclassdisco()
/* construct discosyms[] */ /* construct discosyms[] */
for (s = allclasses; *s; ++s) { for (s = allclasses; *s; ++s) {
oclass = *s; oclass = *s;
c = def_oc_syms[oclass].sym; c = def_oc_syms[(int)oclass].sym;
for (i = bases[(int)oclass]; for (i = bases[(int)oclass];
i < NUM_OBJECTS && objects[i].oc_class == oclass; ++i) i < NUM_OBJECTS && objects[i].oc_class == oclass; ++i)
if ((dis = disco[i]) != 0 && interesting_to_discover(dis)) { if ((dis = disco[i]) != 0 && interesting_to_discover(dis)) {
@@ -559,7 +559,7 @@ doclassdisco()
nonviable classes as unseen acceptable choices so player can ask nonviable classes as unseen acceptable choices so player can ask
for discoveries of any class whether it has discoveries or not */ for discoveries of any class whether it has discoveries or not */
for (s = allclasses, xtras = 0; *s; ++s) { for (s = allclasses, xtras = 0; *s; ++s) {
c = def_oc_syms[*s].sym; c = def_oc_syms[(int)*s].sym;
if (!index(discosyms, c)) { if (!index(discosyms, c)) {
if (!xtras++) Sprintf(eos(discosyms), "%c", '\033'); if (!xtras++) Sprintf(eos(discosyms), "%c", '\033');
Sprintf(eos(discosyms), "%c", c); Sprintf(eos(discosyms), "%c", c);