bring a couple of comments up to date

This commit is contained in:
nhmall
2023-11-10 13:17:09 -05:00
parent c44906b28e
commit f97ff175de
2 changed files with 4 additions and 3 deletions

View File

@@ -2719,7 +2719,7 @@ doeat(void)
}
}
/* from floorfood(), &zeroobj means iron bars at current spot */
/* from floorfood(), &gi.invalid_obj means iron bars at current spot */
if (otmp == &gi.invalid_obj) {
/* hero in metallivore form is eating [diggable] iron bars
at current location so skip the other assorted checks;

View File

@@ -5981,8 +5981,9 @@ makewish(void)
}
/*
* Note: if they wished for and got a non-object successfully,
* otmp == &zeroobj. That includes an artifact which has been denied.
* Wishing for "nothing" requires a separate value to remain distinct.
* otmp == &gi.invalid_obj. That includes an artifact which has been
* denied. Wishing for "nothing" requires a separate value to remain
* distinct.
*/
strcpy(bufcpy, buf);
otmp = readobjnam(buf, &nothing);