Oops on funny xysize_range() arguments

Comments claimed funny arguments could happen.  I don't think so.
This commit is contained in:
Markus Armbruster 2008-08-16 22:07:28 -04:00
parent 3ca882714d
commit d17f33d138

View file

@ -166,20 +166,14 @@ xysize_range(struct range *rp)
rp->width = WORLD_X + rp->hx - rp->lx; rp->width = WORLD_X + rp->hx - rp->lx;
else else
rp->width = rp->hx - rp->lx; rp->width = rp->hx - rp->lx;
#ifndef HAY if (CANT_HAPPEN(rp->width > WORLD_X))
/* This is a necessary check for small, hitech worlds. */
if (rp->width > WORLD_X)
rp->width = WORLD_X; rp->width = WORLD_X;
#endif
if (rp->ly >= rp->hy) if (rp->ly >= rp->hy)
rp->height = WORLD_Y + rp->hy - rp->ly; rp->height = WORLD_Y + rp->hy - rp->ly;
else else
rp->height = rp->hy - rp->ly; rp->height = rp->hy - rp->ly;
#ifndef HAY if (CANT_HAPPEN(rp->height > WORLD_Y))
/* This is a necessary check for small, hitech worlds. */
if (rp->height > WORLD_Y)
rp->height = WORLD_Y; rp->height = WORLD_Y;
#endif
} }
/* This is called also called in snxtitem.c */ /* This is called also called in snxtitem.c */