python3 newdungeon.py
linenoise.o: linenoise/linenoise.h
- $(CC) -c linenoise/linenoise.c
+ $(CC) $(CCFLAGS) -c linenoise/linenoise.c
dungeon: dungeon.o common.o
$(CC) $(CCFLAGS) -o $@ dungeon.o common.o
{
vocab_t verb = command->verb;
vocab_t obj = command->obj;
- int spk = actions[verb].message;
+ long spk = actions[verb].message;
if (obj == 0 || obj == INTRANSITIVE) {
if (atdwrf(game.loc) > 0)
obj = DWARF;
* scanned). If we're at the end of the line or encounter an illegal
* character (not a digit, hyphen, or blank), we return 0. */
- long DIGIT, GETNUM, sign;
+ long GETNUM, sign;
if (source != NULL) MAPLIN(source);
GETNUM = 0;
LNPOSN = LNPOSN + 1;
}
while (!(LNPOSN > LNLENG || INLINE[LNPOSN] == 0)) {
- DIGIT = INLINE[LNPOSN] - 64;
+ long DIGIT = INLINE[LNPOSN] - 64;
if (DIGIT < 0 || DIGIT > 9) {
GETNUM = 0;
break;
long setbit(long bit)
/* Returns 2**bit for use in constructing bit-masks. */
{
- return (1 << bit);
+ return (1L << bit);
}
bool tstbit(long mask, int bit)