X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/0cf3d63b421b88cc05b4ac55af656f84128713f4..8b1c71ee649fb41155da92995044e451c39ea700:/phantasia/interplayer.c diff --git a/phantasia/interplayer.c b/phantasia/interplayer.c index 53cd37ba..d47d32e0 100644 --- a/phantasia/interplayer.c +++ b/phantasia/interplayer.c @@ -1,14 +1,15 @@ -/* $NetBSD: interplayer.c,v 1.7 2004/04/07 17:46:47 ross Exp $ */ +/* $NetBSD: interplayer.c,v 1.10 2009/05/25 23:08:45 dholland Exp $ */ /* * interplayer.c - player to player routines for Phantasia */ #include "include.h" +#undef bool #include void -checkbattle() +checkbattle(void) { long foeloc = 0L; /* location in file of person to fight */ @@ -45,8 +46,7 @@ checkbattle() } void -battleplayer(foeplace) - long foeplace; +battleplayer(long foeplace) { double dtemp; /* for temporary calculations */ double oldhits = 0.0; /* previous damage inflicted by foe */ @@ -274,7 +274,7 @@ LEAVE: } void -myturn() +myturn(void) { double dtemp; /* for temporary calculations */ int ch; /* input */ @@ -352,7 +352,7 @@ HIT: } void -checktampered() +checktampered(void) { long loc = 0L; /* location in energy void file */ @@ -385,10 +385,7 @@ checktampered() } void -tampered(what, arg1, arg2) - int what; - double arg1; - double arg2; +tampered(int what, double arg1, double arg2) { long loc; /* location in file of other players */ @@ -537,8 +534,7 @@ tampered(what, arg1, arg2) } void -userlist(ingameflag) - bool ingameflag; +userlist(phbool ingameflag) { int numusers = 0; /* number of users on file */ @@ -600,7 +596,7 @@ userlist(ingameflag) } void -throneroom() +throneroom(void) { FILE *fp; /* to clear energy voids */ long loc = 0L; /* location of old king in player file */ @@ -654,7 +650,7 @@ throneroom() } void -dotampered() +dotampered(void) { short tamper; /* value for tampering with other players */ const char *option; /* pointer to option description */ @@ -861,9 +857,7 @@ dotampered() } void -writevoid(vp, loc) - struct energyvoid *vp; - long loc; +writevoid(struct energyvoid *vp, long loc) { fseek(Energyvoidfp, loc, SEEK_SET); @@ -873,7 +867,7 @@ writevoid(vp, loc) } long -allocvoid() +allocvoid(void) { long loc = 0L; /* location of new energy void */