Eliminate thew last property inequality outside a macro.

This commit is contained in:
Eric S. Raymond 2024-09-23 05:08:11 -04:00
parent 96ad6c6245
commit 92451f1fff

View file

@ -329,8 +329,7 @@ static phase_codes_t vcarry(verb_t verb, obj_t obj) {
if (game.objects[obj].fixed != IS_FREE) {
switch (obj) {
case PLANT:
/* Next guard tests whether plant is tiny or stashed */
rspeak(game.objects[PLANT].prop <= PLANT_THIRSTY
rspeak((game.objects[PLANT].prop == PLANT_THIRSTY || OBJECT_IS_STASHED(PLANT))
? DEEP_ROOTS
: YOU_JOKING);
break;