symset restrictions (trunk only)

The restricted bits could end up set on non-restricted sets.
This case needs to check that we're in a matching set.
This commit is contained in:
nethack.allison
2006-10-17 11:56:31 +00:00
parent 624a1b31d9
commit 6873e64cf5
+2
View File
@@ -2625,6 +2625,7 @@ int which_set;
} }
break; break;
case 5: /* restrictions: xxxx*/ case 5: /* restrictions: xxxx*/
if (chosen_symset_start) {
i = 0; i = 0;
while (known_restrictions[i]) { while (known_restrictions[i]) {
if (!strcmpi(known_restrictions[i], bufp)) { if (!strcmpi(known_restrictions[i], bufp)) {
@@ -2638,6 +2639,7 @@ int which_set;
} }
i++; i++;
} }
}
break; break;
} }
} else { /* !SYM_CONTROL */ } else { /* !SYM_CONTROL */