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) ?
This commit is contained in:
nethack.allison
2003-11-23 17:19:33 +00:00
parent d74990926c
commit 7982a95161
4 changed files with 4 additions and 3 deletions

View 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

View 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);

View File

@@ -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 */

View 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);