another problem with "mille"

Col. G. L. Sicherman colonel at gloria.UUCP
Sun Jul 21 00:57:42 AEST 1985


["So much for a house style!"]

Another bug is that mille(6) lets you discard safeties.  We fixed this one
long ago:

[in move.c]
	  case M_DISCARD:
		if (haspicked(pp)) {
			if (pp->hand[Card_no] == C_INIT)
				...
			else {
				Discard = pp->hand[Card_no];
				if (issafety(Discard)) {
					error("not that one!");
					break;
				}
				pp->hand[Card_no] = C_INIT;
				Next = TRUE;
				if (Play == PLAYER)
					account(Discard);
			}
		}
		else ...
-- 
Col. G. L. Sicherman
UU: ...{rocksvax|decvax}!sunybcs!colonel
CS: colonel at buffalo-cs
BI: csdsicher at sunyabva



More information about the Comp.bugs.4bsd.ucb-fixes mailing list