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

@@ -29,7 +29,7 @@ static const int explosion[3][3] = {
*/
void
explode(
int x, int y, /* explosion's location; adjacent spots are also affected */
coordxy x, coordxy y, /* explosion's location; adjacent spots are also affected */
int type, /* same as in zap.c; -(wand typ) for some WAND_CLASS */
int dam, /* damage amount */
char olet, /* object class or BURNING_OIL or MON_EXPLODE */
@@ -639,7 +639,7 @@ struct scatter_chain {
/* returns number of scattered objects */
long
scatter(int sx, int sy, /* location of objects to scatter */
scatter(coordxy sx, coordxy sy, /* location of objects to scatter */
int blastforce, /* force behind the scattering */
unsigned int scflags,
struct obj *obj) /* only scatter this obj */
@@ -806,7 +806,7 @@ scatter(int sx, int sy, /* location of objects to scatter */
}
}
for (stmp = schain; stmp; stmp = stmp2) {
int x, y;
coordxy x, y;
boolean obj_left_shop = FALSE;
stmp2 = stmp->next;
@@ -867,7 +867,7 @@ scatter(int sx, int sy, /* location of objects to scatter */
* For now, just perform a "regular" explosion.
*/
void
splatter_burning_oil(int x, int y, boolean diluted_oil)
splatter_burning_oil(coordxy x, coordxy y, boolean diluted_oil)
{
int dmg = d(diluted_oil ? 3 : 4, 4);
@@ -879,7 +879,7 @@ splatter_burning_oil(int x, int y, boolean diluted_oil)
/* lit potion of oil is exploding; extinguish it as a light source before
possibly killing the hero and attempting to save bones */
void
explode_oil(struct obj *obj, int x, int y)
explode_oil(struct obj *obj, coordxy x, coordxy y)
{
boolean diluted_oil = obj->odiluted;