Bugfix: bird starts caged in endgame.

Turns out the code of put() had been modified ibcorrectly, but
the bug was masked in all but a few cases, noe of which would be
encountered in normal gameplay.

A test to ensure this bug does noit recur has been added.
This commit is contained in:
Eric S. Raymond 2023-03-11 09:35:26 -05:00
parent fe8a82927c
commit 71f05c4567
7 changed files with 2445 additions and 17 deletions

2
misc.c
View file

@ -602,7 +602,7 @@ loc_t put(obj_t object, loc_t where, int pval)
* negated game.prop values for the repository objects. */
{
move(object, where);
return STASHED(pval);
return (-1) - pval;;
}
void carry(obj_t object, loc_t where)