projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Made YAML coverage test work with variable messages (%s, %d, etc.)
[open-adventure.git]
/
main.c
diff --git
a/main.c
b/main.c
index 972e30f582a484fa7ae03acf3472950f72ca1335..6457d055068984a423d0cf575d5a167c8039bbd3 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-613,8
+613,6
@@
static void playermove( int motion)
case NW:
case SW:
case SE:
case NW:
case SW:
case SE:
- rspeak(BAD_DIRECTION);
- break;
case UP:
case DOWN:
rspeak(BAD_DIRECTION);
case UP:
case DOWN:
rspeak(BAD_DIRECTION);
@@
-1199,7
+1197,7
@@
Laction:
case GO_WORD2:
/* Get second word for analysis. */
command.wd1 = command.wd2;
case GO_WORD2:
/* Get second word for analysis. */
command.wd1 = command.wd2;
- str
cpy(command.raw1, command.raw2
);
+ str
ncpy(command.raw1, command.raw2, LINESIZE - 1
);
wordclear(&command.wd2);
command.raw2[0] = '\0';
goto L2620;
wordclear(&command.wd2);
command.raw2[0] = '\0';
goto L2620;