]> granicus.if.org Git - nethack/commitdiff
U751 coordinate typos
authornethack.allison <nethack.allison>
Sun, 23 Nov 2003 17:19:33 +0000 (17:19 +0000)
committernethack.allison <nethack.allison>
Sun, 23 Nov 2003 17:19:33 +0000 (17:19 +0000)
apply.c:   if (cansee(rx,ry)) newsym(mtmp->my,mtmp->my);
mon.c:         (distu(mtmp->my, mtmp->my) <= 5) ?
wizard.c:        (distu(mtmp->my, mtmp->my) <= 5) ?

doc/fixes34.3
src/apply.c
src/mon.c
src/wizard.c

index 867b689bef0fe2e219128781a9c680b8821463f1..d71dc8b9dac851642d31db12687553a84dbd2bc5 100644 (file)
@@ -94,6 +94,7 @@ resuming an interrupted 'A' command could cause crash if pending worn item(s)
 resuming interrupted 'A' sometimes ended with "You finished disrobing" twice
 when you're asleep you shouldn't "notice" monsters that have become undetected
 must be able to reach floor in order to use stethoscope on corpse or statue
+fix a few coordinate (y,y) -> (x,y) typos in apply.c, mon.c, and wizard.c
 
 
 Platform- and/or Interface-Specific Fixes
index 2e95d1d0f01ec937337e882c8b91f63e0f11448c..1b8925cc7052c30a2b95a6e0b501adc5fd5181b9 100644 (file)
@@ -350,7 +350,7 @@ use_stethoscope(obj)
                mstatusline(mtmp);
                if (mtmp->mundetected) {
                        mtmp->mundetected = 0;
-                       if (cansee(rx,ry)) newsym(mtmp->my,mtmp->my);
+                       if (cansee(rx,ry)) newsym(mtmp->mx,mtmp->my);
                }
                if (!canspotmon(mtmp))
                        map_invisible(rx,ry);
index 18a0d4003853e61f44e4e1d9fd7e6369845768b3..e509d7cf6b9d7935b58c8aa5369b3c06567c9734 100644 (file)
--- a/src/mon.c
+++ b/src/mon.c
@@ -871,7 +871,7 @@ mpickstuff(mtmp, str)
 #endif
                if (cansee(mtmp->mx,mtmp->my) && flags.verbose)
                        pline("%s picks up %s.", Monnam(mtmp),
-                             (distu(mtmp->my, mtmp->my) <= 5) ?
+                             (distu(mtmp->mx, mtmp->my) <= 5) ?
                                doname(otmp) : distant_name(otmp, doname));
                obj_extract_self(otmp);
                /* unblock point after extract, before pickup */
index 413c268aa66827285c9b1f80d4184986d43c6ea1..c9b75fdba7d48215072619d47a40a516654362bb 100644 (file)
@@ -345,7 +345,7 @@ tactics(mtmp)
                            if (cansee(mtmp->mx, mtmp->my))
                                pline("%s picks up %s.",
                                    Monnam(mtmp),
-                                   (distu(mtmp->my, mtmp->my) <= 5) ?
+                                   (distu(mtmp->mx, mtmp->my) <= 5) ?
                                     doname(otmp) : distant_name(otmp, doname));
                            obj_extract_self(otmp);
                            (void) mpickobj(mtmp, otmp);