X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=misc.c;h=9971cb5eb18c92bb9bfcf4b38cfc78b8570d167f;hp=9a8d2e5a4054f6989ab962b404c346a17b0cbd85;hb=829c13d1d56e398e5b47186c31b2e2146f26dc6a;hpb=2f60504e077dfdb8c37308239dd0ef7964cd3517 diff --git a/misc.c b/misc.c index 9a8d2e5..9971cb5 100644 --- a/misc.c +++ b/misc.c @@ -335,13 +335,11 @@ bool yes_or_no(const char* question, const char* yes_response, const char* no_re free(firstword); - if (yes == 0 || - y == 0) { + if (yes == 0 || y == 0) { speak(yes_response); outcome = true; break; - } else if (no == 0 || - n == 0) { + } else if (no == 0 || n == 0) { speak(no_response); outcome = false; break; @@ -656,8 +654,7 @@ void drop(obj_t object, loc_t where) --game.holdng; game.place[object] = where; } - if (where == LOC_NOWHERE || - where == CARRIED) + if (where == LOC_NOWHERE || where == CARRIED) return; game.link[object] = game.atloc[where]; game.atloc[where] = object;