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:
parent
fe8a82927c
commit
71f05c4567
7 changed files with 2445 additions and 17 deletions
2
misc.c
2
misc.c
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue