U491: xorns, digging and pits

Digging a pit while a xorn set the trap time, but falling into a pit did
not.  While lookin at this, it occurred to me that the same inconsistency
might occur while polymorhing from/to a xorn, and there was.
This commit is contained in:
cohrs
2003-06-30 06:08:06 +00:00
parent fc40ccd7d2
commit 669633eb21
3 changed files with 19 additions and 4 deletions

View File

@@ -549,11 +549,12 @@ int ttyp;
if(at_u) {
if (!wont_fall) {
if (!Passes_walls)
u.utrap = rn1(4,2);
u.utraptype = TT_PIT;
vision_full_recalc = 1; /* vision limits change */
u.utraptype = TT_PIT;
vision_full_recalc = 1; /* vision limits change */
} else
u.utrap = 0;
u.utrap = 0;
if (oldobjs != newobjs) /* something unearthed */
(void) pickup(1); /* detects pit */
} else if(mtmp) {