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:
8d9c8e4
)
Removed temporary variable for clarity; Upsized text buffer in fallback to maximum...
248/head
author
NHOrus
<jy6x2b32pie9@yahoo.com>
Sun, 16 Jul 2017 13:07:23 +0000
(16:07 +0300)
committer
NHOrus
<jy6x2b32pie9@yahoo.com>
Sun, 16 Jul 2017 13:07:23 +0000
(16:07 +0300)
actions.c
patch
|
blob
|
history
main.c
patch
|
blob
|
history
diff --git
a/actions.c
b/actions.c
index efa52a6bf9adecafe5db8c2ea85de6fb03c297af..54cd4e0b2d0573d3983ba06e26af20ee93d07e85 100644
(file)
--- a/
actions.c
+++ b/
actions.c
@@
-201,15
+201,14
@@
static int bigwords(long id)
* crossing. */
if (game.place[EGGS] == LOC_NOWHERE && game.place[TROLL] == LOC_NOWHERE && game.prop[TROLL] == TROLL_UNPAID)
game.prop[TROLL] = TROLL_PAIDONCE;
* crossing. */
if (game.place[EGGS] == LOC_NOWHERE && game.place[TROLL] == LOC_NOWHERE && game.prop[TROLL] == TROLL_UNPAID)
game.prop[TROLL] = TROLL_PAIDONCE;
- int k;
if (HERE(EGGS))
if (HERE(EGGS))
-
k = EGGS_VANISHED
;
+
pspeak(EGGS, look, EGGS_VANISHED, true)
;
else if (game.loc == objects[EGGS].plac)
else if (game.loc == objects[EGGS].plac)
-
k = EGGS_HERE
;
+
pspeak(EGGS, look, EGGS_HERE, true)
;
else
else
-
k = EGGS_DONE
;
+
pspeak(EGGS, look, EGGS_DONE, true)
;
move(EGGS, objects[EGGS].plac);
move(EGGS, objects[EGGS].plac);
- pspeak(EGGS, look, k, true);
+
return GO_CLEAROBJ;
}
} else {
return GO_CLEAROBJ;
}
} else {
diff --git
a/main.c
b/main.c
index f8bf8a1cb4dc73a42172ce826d8ee3e06d88d7ed..bf8927894f218f57085c5c71f1b4cace3beba61c 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-137,7
+137,7
@@
static bool fallback_handler(struct command_t command)
/* fallback handler for commands not handled by FORTRANish parser */
{
long sv;
/* fallback handler for commands not handled by FORTRANish parser */
{
long sv;
- char buf[
LINESIZE
];
+ char buf[
2 * LINESIZE + 1
];
sprintf(buf, "%s %s", command.raw1, command.raw2);
if (sscanf(buf, "seed %ld", &sv) == 1) {
sprintf(buf, "%s %s", command.raw1, command.raw2);
if (sscanf(buf, "seed %ld", &sv) == 1) {