gi.invalid_obj -> hands_obj
This commit is contained in:
@@ -2719,8 +2719,8 @@ doeat(void)
|
||||
}
|
||||
}
|
||||
|
||||
/* from floorfood(), &gi.invalid_obj means iron bars at current spot */
|
||||
if (otmp == &gi.invalid_obj) {
|
||||
/* from floorfood(), &hands_obj means iron bars at current spot */
|
||||
if (otmp == &hands_obj) {
|
||||
/* hero in metallivore form is eating [diggable] iron bars
|
||||
at current location so skip the other assorted checks;
|
||||
operates as if digging rather than via the eat occupation */
|
||||
@@ -3507,7 +3507,7 @@ floorfood(
|
||||
c = yn_function(qbuf, ynqchars, 'n', TRUE);
|
||||
}
|
||||
if (c == 'y')
|
||||
return &gi.invalid_obj;
|
||||
return &hands_obj;
|
||||
else if (c == 'q')
|
||||
return (struct obj *) 0;
|
||||
++getobj_else;
|
||||
|
||||
Reference in New Issue
Block a user