projects
/
open-adventure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8445a8
)
Remove testing for intransitive seperate from NO_OBJECT in attact()
author
Aaron Traas
<aaron@traas.org>
Mon, 3 Jul 2017 01:56:49 +0000
(21:56 -0400)
committer
Aaron Traas
<aaron@traas.org>
Mon, 3 Jul 2017 01:56:49 +0000
(21:56 -0400)
because we look for it immediately below, and this code is never
reached. If it were, intransitive attacks would never work.
actions.c
patch
|
blob
|
history
diff --git
a/actions.c
b/actions.c
index 13fc8c5dfdf7bee165612b5c0e3b5af818b84231..a6f686d5115477059387e896308e65a9d498e08d 100644
(file)
--- a/
actions.c
+++ b/
actions.c
@@
-20,9
+20,6
@@
static int attack(struct command_t *command)
vocab_t verb = command->verb;
vocab_t obj = command->obj;
- if (obj == INTRANSITIVE) {
- return GO_UNKNOWN;
- }
long spk = actions[verb].message;
if (obj == NO_OBJECT || obj == INTRANSITIVE) {
int changes = 0;