]> granicus.if.org Git - nethack/commitdiff
Use looted rather than doormask when it pertains to a throne
authorcopperwater <aosdict@gmail.com>
Sat, 28 May 2022 01:25:18 +0000 (21:25 -0400)
committercopperwater <aosdict@gmail.com>
Sat, 28 May 2022 01:25:18 +0000 (21:25 -0400)
They're both just aliases for rm.flags, but "doormask" doesn't mean
anything conceptual for a throne.

src/dokick.c

index 3c2a0c3481e7397bdc1cfd2c78158d95f5e69895..d6afaff4295b9961fc18509e6b9ec8ec54d690c1 100644 (file)
@@ -1096,9 +1096,9 @@ dokick(void)
                 kick_dumb(x, y);
                 return ECMD_TIME;
             }
-            if ((Luck < 0 || g.maploc->doormask) && !rn2(3)) {
+            if ((Luck < 0 || g.maploc->looted) && !rn2(3)) {
+                g.maploc->looted = 0; /* don't leave loose ends.. */
                 g.maploc->typ = ROOM;
-                g.maploc->doormask = 0; /* don't leave loose ends.. */
                 (void) mkgold((long) rnd(200), x, y);
                 if (Blind)
                     pline("CRASH!  You destroy it.");