]> granicus.if.org Git - nethack/commitdiff
Revert "Revert type change of lit which would break code."
authorBart House <bart@barthouse.com>
Mon, 15 Jul 2019 04:09:38 +0000 (21:09 -0700)
committerBart House <bart@barthouse.com>
Mon, 15 Jul 2019 04:09:38 +0000 (21:09 -0700)
This reverts commit cc1219b5a8bae222a6ba6a0c755419c9ca200a79.

src/sp_lev.c

index ba9d75c72f9342d6ba0700d27e99d4a3539d8e6f..b2206ae704b296a63af5b1feaea3876c3ae1e9f2 100644 (file)
@@ -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;
                 }