From: nethack.allison Date: Sun, 23 Nov 2003 17:19:33 +0000 (+0000) Subject: U751 coordinate typos X-Git-Tag: MOVE2GIT~1566 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7982a95161c1f452f0532b763f937f5c5d22b2d0;p=nethack U751 coordinate typos 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) ? --- diff --git a/doc/fixes34.3 b/doc/fixes34.3 index 867b689be..d71dc8b9d 100644 --- a/doc/fixes34.3 +++ b/doc/fixes34.3 @@ -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 diff --git a/src/apply.c b/src/apply.c index 2e95d1d0f..1b8925cc7 100644 --- a/src/apply.c +++ b/src/apply.c @@ -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); diff --git a/src/mon.c b/src/mon.c index 18a0d4003..e509d7cf6 100644 --- 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 */ diff --git a/src/wizard.c b/src/wizard.c index 413c268aa..c9b75fdba 100644 --- a/src/wizard.c +++ b/src/wizard.c @@ -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);