* 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))
- k = EGGS_VANISHED;
+ pspeak(EGGS, look, EGGS_VANISHED, true);
else if (game.loc == objects[EGGS].plac)
- k = EGGS_HERE;
+ pspeak(EGGS, look, EGGS_HERE, true);
else
- k = EGGS_DONE;
+ pspeak(EGGS, look, EGGS_DONE, true);
move(EGGS, objects[EGGS].plac);
- pspeak(EGGS, look, k, true);
+
return GO_CLEAROBJ;
}
} else {
/* 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) {