be more consistent with coordinates

This commit is contained in:
nhmall
2022-07-02 09:10:03 -04:00
parent 0bd5b3d39e
commit 3004cf2d34
74 changed files with 831 additions and 746 deletions

View File

@@ -1199,7 +1199,7 @@ freeinv(struct obj *obj)
/* drawbridge is destroying all objects at <x,y> */
void
delallobj(int x, int y)
delallobj(coordxy x, coordxy y)
{
struct obj *otmp, *otmp2;
@@ -1252,7 +1252,7 @@ delobj_core(
/* try to find a particular type of object at designated map location */
struct obj *
sobj_at(int otyp, int x, int y)
sobj_at(int otyp, coordxy x, coordxy y)
{
register struct obj *otmp;
@@ -1384,7 +1384,7 @@ o_on(unsigned int id, struct obj *objchn)
}
boolean
obj_here(struct obj *obj, int x, int y)
obj_here(struct obj *obj, coordxy x, coordxy y)
{
register struct obj *otmp;
@@ -1395,7 +1395,7 @@ obj_here(struct obj *obj, int x, int y)
}
struct obj *
g_at(int x, int y)
g_at(coordxy x, coordxy y)
{
register struct obj *obj = g.level.objects[x][y];
@@ -3997,7 +3997,7 @@ dotypeinv(void)
/* return a string describing the dungeon feature at <x,y> if there
is one worth mentioning at that location; otherwise null */
const char *
dfeature_at(int x, int y, char *buf)
dfeature_at(coordxy x, coordxy y, char *buf)
{
struct rm *lev = &levl[x][y];
int ltyp = lev->typ, cmap = -1;
@@ -5335,7 +5335,7 @@ only_here(struct obj *obj)
* Currently, this is only used with a wand of probing zapped downwards.
*/
int
display_binventory(int x, int y, boolean as_if_seen)
display_binventory(coordxy x, coordxy y, boolean as_if_seen)
{
struct obj *obj;
menu_item *selected = 0;