for (int i = 0; i < 5; ++i)
{
char advent = (packed >> i * 6) & 63;
- token[4 - i] = advent_to_ascii[advent];
+ token[4 - i] = advent_to_ascii[(int) advent];
}
// Ensure the last character is \0.
from=game.fixed[object-NOBJECTS];
else
from=game.place[object];
- if (from > 0 && from <= 300)
+ if (from > 0 && !SPECIAL(from))
CARRY(object,from);
DROP(object,where);
}
* in which you want to echo commands. One is when shipping them to
* a log under the -l option, in which case you want to suppress
* prompt generation (so test logs are unadorned command sequences).
- * On the other hand, if you redireceted stdin and are feeding the program
+ * On the other hand, if you redirected stdin and are feeding the program
* a logfile, you *do* want prompt generation - it makes checkfiles
- * easier to read when the commands are maked by a preceding prompt.
+ * easier to read when the commands are marked by a preceding prompt.
*/
do {
if (!editline) {
}
for (i=1; i<=LNLENG; i++) {
- INLINE[i]=advent_to_ascii[INLINE[i]];
+ INLINE[i]=advent_to_ascii[(int) INLINE[i]];
}
INLINE[LNLENG+1]=0;
printf("%s\n", INLINE+1);