From: Bart House Date: Mon, 15 Jul 2019 04:09:38 +0000 (-0700) Subject: Revert "Revert type change of lit which would break code." X-Git-Tag: v3.6.3.757eca7~124 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3adaa798582f02f646bc123f9f0166b752513f1e;p=nethack Revert "Revert type change of lit which would break code." This reverts commit cc1219b5a8bae222a6ba6a0c755419c9ca200a79. --- diff --git a/src/sp_lev.c b/src/sp_lev.c index ba9d75c72..b2206ae70 100644 --- a/src/sp_lev.c +++ b/src/sp_lev.c @@ -3763,7 +3763,7 @@ struct opvar *mc; { int x, y; schar mapc; - xchar lit; + uchar lit; struct opvar *ret = selection_opvar((char *) 0); if (!ov || !mc || !ret) @@ -3783,7 +3783,7 @@ struct opvar *mc; break; case 0: case 1: - if (levl[x][y].lit == (unsigned int) lit) + if (levl[x][y].lit == lit) selection_setpoint(x, y, ret, 1); break; }