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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user