X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=dungeon.c;h=a5531473116752dc260e90804c3b1a3067e57ef7;hp=2cb10febc5e084aaae2eeeefa7e07bd8fe754329;hb=f9edfc51515853c21418c1d55b681a71681a748c;hpb=d612b0e6ca7b7cf81daaac830d7a7ed9ddc16874 diff --git a/dungeon.c b/dungeon.c index 2cb10fe..a553147 100644 --- a/dungeon.c +++ b/dungeon.c @@ -198,7 +198,7 @@ static long GETNUM(FILE *source) * 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 DIGIT, GETNUM, sign; if (source != NULL) MAPLIN(source); GETNUM = 0; @@ -209,9 +209,9 @@ static long GETNUM(FILE *source) } if (INLINE[LNPOSN] != 9) { - SIGN = 1; + sign = 1; } else { - SIGN = -1; + sign = -1; LNPOSN = LNPOSN + 1; } while (!(LNPOSN > LNLENG || INLINE[LNPOSN] == 0)) { @@ -224,7 +224,7 @@ static long GETNUM(FILE *source) LNPOSN = LNPOSN + 1; } - GETNUM = GETNUM * SIGN; + GETNUM = GETNUM * sign; LNPOSN = LNPOSN + 1; return (GETNUM); }