Merge branch 'NetHack-3.6.0'

This commit is contained in:
keni
2016-07-19 14:35:13 -04:00
22 changed files with 140 additions and 63 deletions

View File

@@ -299,7 +299,7 @@ int start;
* whitespace, do not change the value of SAVEF.
*/
for (bp = buf; *bp; bp++)
if (!isspace(*bp)) {
if (!isspace((uchar) *bp)) {
strncpy(SAVEF, bp, PATHLEN);
break;
}

View File

@@ -153,7 +153,7 @@ int portdebug;
if (vk == 0xBF)
ch = M('?');
else
ch = M(tolower(keycode));
ch = M(tolower((uchar) keycode));
}
if (ch == '\r')
ch = '\n';

View File

@@ -167,7 +167,7 @@ int portdebug;
if (vk == 0xBF)
ch = M('?');
else
ch = M(tolower(keycode));
ch = M(tolower((uchar) keycode));
}
/* Attempt to work better with international keyboards. */
else {

View File

@@ -352,7 +352,7 @@ int portdebug;
if (vk == 0xBF)
ch = M('?');
else
ch = M(tolower(keycode));
ch = M(tolower((uchar) keycode));
} else if (ch < 32 && !isnumkeypad(scan)) {
/* Control code; ReadConsole seems to filter some of these,
* including ESC */

View File

@@ -119,7 +119,7 @@ char *str;
char *ptr;
char drive;
if ((ptr = index(str, ':')) != (char *) 0) {
drive = toupper(*(ptr - 1));
drive = toupper((uchar) *(ptr - 1));
_chdrive((drive - 'A') + 1);
}
}