-/* $NetBSD: misc.c,v 1.13 2005/02/15 12:56:20 jsm Exp $ */
+/* $NetBSD: misc.c,v 1.15 2008/01/28 06:20:15 dholland Exp $ */
/*
* misc.c Phantasia miscellaneous support routines
const char *
descrlocation(playerp, shortflag)
struct player *playerp;
- bool shortflag;
+ phbool shortflag;
{
double circle; /* corresponding circle for coordinates */
int quadrant; /* quandrant of grid */
const char *
descrtype(playerp, shortflag)
struct player *playerp;
- bool shortflag;
+ phbool shortflag;
{
int type; /* for caluculating result subscript */
static const char *const results[] =/* description table */
}
double
-distance(x1, x2, y1, y2)
- double x1, x2, y1, y2;
+distance(x_1, x_2, y_1, y_2)
+ double x_1, x_2, y_1, y_2;
{
double deltax, deltay;
- deltax = x1 - x2;
- deltay = y1 - y2;
+ deltax = x_1 - x_2;
+ deltay = y_1 - y_2;
return (sqrt(deltax * deltax + deltay * deltay));
}