projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix some screwy formatting of conditionals...
[open-adventure.git]
/
misc.c
diff --git
a/misc.c
b/misc.c
index 9a8d2e5a4054f6989ab962b404c346a17b0cbd85..9971cb5eb18c92bb9bfcf4b38cfc78b8570d167f 100644
(file)
--- 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);
free(firstword);
- if (yes == 0 ||
- y == 0) {
+ if (yes == 0 || y == 0) {
speak(yes_response);
outcome = true;
break;
speak(yes_response);
outcome = true;
break;
- } else if (no == 0 ||
- n == 0) {
+ } else if (no == 0 || n == 0) {
speak(no_response);
outcome = false;
break;
speak(no_response);
outcome = false;
break;
@@
-656,8
+654,7
@@
void drop(obj_t object, loc_t where)
--game.holdng;
game.place[object] = 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;
return;
game.link[object] = game.atloc[where];
game.atloc[where] = object;