summaryrefslogtreecommitdiffstats
path: root/games/phantasia
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1995-05-30 03:37:36 +0000
committerrgrimes <rgrimes@FreeBSD.org>1995-05-30 03:37:36 +0000
commit30ef9631c5eac7f8254bd3d7ad274d34d9f518b8 (patch)
tree4d8ac7e75ac179a918a76def244de6e3f3314e76 /games/phantasia
parent188803394908f222ab3ed8ec32331eb6dd00fd2d (diff)
downloadFreeBSD-src-30ef9631c5eac7f8254bd3d7ad274d34d9f518b8.zip
FreeBSD-src-30ef9631c5eac7f8254bd3d7ad274d34d9f518b8.tar.gz
Remove trailing whitespace.
Diffstat (limited to 'games/phantasia')
-rw-r--r--games/phantasia/Makefile4
-rw-r--r--games/phantasia/convert.c2
-rw-r--r--games/phantasia/fight.c40
-rw-r--r--games/phantasia/gamesupport.c14
-rw-r--r--games/phantasia/interplayer.c38
-rw-r--r--games/phantasia/io.c12
-rw-r--r--games/phantasia/main.c56
-rw-r--r--games/phantasia/misc.c34
-rw-r--r--games/phantasia/setup.c8
9 files changed, 104 insertions, 104 deletions
diff --git a/games/phantasia/Makefile b/games/phantasia/Makefile
index 7727006..7c61916 100644
--- a/games/phantasia/Makefile
+++ b/games/phantasia/Makefile
@@ -11,10 +11,10 @@ CLEANFILES+= characs gold lastdead mess monsters motd scoreboard void
all: setup phantasia ${MAN6}
-setup: phantglobs.o setup.o monsters.asc ${LIBM}
+setup: phantglobs.o setup.o monsters.asc ${LIBM}
${CC} phantglobs.o setup.o -o ${.TARGET} -lm
-beforeinstall:
+beforeinstall:
./setup -m ${.CURDIR}/monsters.asc
install -c -m 660 -o games -g bin gold ${DESTDIR}/var/games/phantasia
install -c -m 660 -o games -g bin lastdead ${DESTDIR}/var/games/phantasia
diff --git a/games/phantasia/convert.c b/games/phantasia/convert.c
index f46343f..b18c5e9 100644
--- a/games/phantasia/convert.c
+++ b/games/phantasia/convert.c
@@ -24,7 +24,7 @@ char Newpfile[] = DEST/newcharacs"; /* new format file */
/
/ RETURN VALUE: none
/
-/ MODULES CALLED: time(), exit(), fread(), fopen(), srandom(), floor(),
+/ MODULES CALLED: time(), exit(), fread(), fopen(), srandom(), floor(),
/ random(), strcmp(), fwrite(), strcpy(), fclose(), fprintf()
/
/ GLOBAL INPUTS: _iob[], Oldplayer, Newplayer
diff --git a/games/phantasia/fight.c b/games/phantasia/fight.c
index 39858c9..93b2d18 100644
--- a/games/phantasia/fight.c
+++ b/games/phantasia/fight.c
@@ -17,12 +17,12 @@
/
/ RETURN VALUE: none
/
-/ MODULES CALLED: monsthits(), playerhits(), readmessage(), callmonster(),
-/ writerecord(), pickmonster(), displaystats(), pow(), cancelmonster(),
-/ awardtreasure(), more(), death(), wmove(), setjmp(), drandom(), printw(),
+/ MODULES CALLED: monsthits(), playerhits(), readmessage(), callmonster(),
+/ writerecord(), pickmonster(), displaystats(), pow(), cancelmonster(),
+/ awardtreasure(), more(), death(), wmove(), setjmp(), drandom(), printw(),
/ longjmp(), wrefresh(), mvprintw(), wclrtobot()
/
-/ GLOBAL INPUTS: Curmonster, Whichmonster, LINES, Lines, Circle, Shield,
+/ GLOBAL INPUTS: Curmonster, Whichmonster, LINES, Lines, Circle, Shield,
/ Player, *stdscr, Fileloc, Fightenv[], *Enemyname
/
/ GLOBAL OUTPUTS: Curmonster, Whichmonster, Lines, Shield, Player, Luckout
@@ -237,7 +237,7 @@ pickmonster()
/* even chance of some tamer non-water monsters */
return((int) ROLL(14.0, 50.0));
- else
+ else
/* even chance of some of the tamest non-water monsters */
return((int) ROLL(14.0, 25.0));
}
@@ -254,8 +254,8 @@ pickmonster()
/
/ RETURN VALUE: none
/
-/ MODULES CALLED: hitmonster(), throwspell(), inputoption(), cancelmonster(),
-/ floor(), wmove(), drandom(), altercoordinates(), waddstr(), mvprintw(),
+/ MODULES CALLED: hitmonster(), throwspell(), inputoption(), cancelmonster(),
+/ floor(), wmove(), drandom(), altercoordinates(), waddstr(), mvprintw(),
/ wclrtoeol(), wclrtobot()
/
/ GLOBAL INPUTS: Curmonster, Lines, Player, *stdscr, Luckout, *Enemyname
@@ -429,14 +429,14 @@ int ch; /* input */
/
/ RETURN VALUE: none
/
-/ MODULES CALLED: cancelmonster(), scramblestats(), more(), floor(), wmove(),
-/ drandom(), altercoordinates(), longjmp(), waddstr(), mvprintw(),
+/ MODULES CALLED: cancelmonster(), scramblestats(), more(), floor(), wmove(),
+/ drandom(), altercoordinates(), longjmp(), waddstr(), mvprintw(),
/ getanswer()
/
-/ GLOBAL INPUTS: Curmonster, Lines, Circle, Shield, Player, *stdscr,
+/ GLOBAL INPUTS: Curmonster, Lines, Circle, Shield, Player, *stdscr,
/ Fightenv[], *Enemyname
/
-/ GLOBAL OUTPUTS: Curmonster, Whichmonster, Lines, Shield, Player,
+/ GLOBAL OUTPUTS: Curmonster, Whichmonster, Lines, Shield, Player,
/ *Enemyname
/
/ DESCRIPTION:
@@ -471,7 +471,7 @@ int ch; /* input */
/* take experience away */
inflict = ROLL(10.0, Curmonster.m_strength);
inflict = MIN(Player.p_experience, inflict);
- mvprintw(Lines++, 0,
+ mvprintw(Lines++, 0,
"%s took away %.0f experience points.", Enemyname, inflict);
Player.p_experience -= inflict;
return;
@@ -796,11 +796,11 @@ double inflict;
/
/ RETURN VALUE: none
/
-/ MODULES CALLED: hitmonster(), cancelmonster(), sqrt(), floor(), wmove(),
-/ drandom(), altercoordinates(), longjmp(), infloat(), waddstr(), mvprintw(),
+/ MODULES CALLED: hitmonster(), cancelmonster(), sqrt(), floor(), wmove(),
+/ drandom(), altercoordinates(), longjmp(), infloat(), waddstr(), mvprintw(),
/ getanswer()
/
-/ GLOBAL INPUTS: Curmonster, Whichmonster, Nomana[], Player, *stdscr,
+/ GLOBAL INPUTS: Curmonster, Whichmonster, Nomana[], Player, *stdscr,
/ Fightenv[], Illspell[], *Enemyname
/
/ GLOBAL OUTPUTS: Curmonster, Whichmonster, Shield, Player
@@ -1035,7 +1035,7 @@ int ch; /* input */
/
/ RETURN VALUE: none
/
-/ MODULES CALLED: truncstring(), fread(), fseek(), floor(), drandom(),
+/ MODULES CALLED: truncstring(), fread(), fseek(), floor(), drandom(),
/ strcpy()
/
/ GLOBAL INPUTS: Curmonster, Circle, Player, *Monstfp
@@ -1144,11 +1144,11 @@ struct monster Othermonster; /* to find a name for mimics */
/
/ RETURN VALUE: none
/
-/ MODULES CALLED: pickmonster(), collecttaxes(), more(), cursedtreasure(),
-/ floor(), wmove(), drandom(), sscanf(), printw(), altercoordinates(),
+/ MODULES CALLED: pickmonster(), collecttaxes(), more(), cursedtreasure(),
+/ floor(), wmove(), drandom(), sscanf(), printw(), altercoordinates(),
/ longjmp(), infloat(), waddstr(), getanswer(), getstring(), wclrtobot()
/
-/ GLOBAL INPUTS: Somebetter[], Curmonster, Whichmonster, Circle, Player,
+/ GLOBAL INPUTS: Somebetter[], Curmonster, Whichmonster, Circle, Player,
/ *stdscr, Databuf[], *Statptr, Fightenv[]
/
/ GLOBAL OUTPUTS: Whichmonster, Shield, Player
@@ -1211,7 +1211,7 @@ double dtemp; /* for temporary calculations */
return;
}
- else
+ else
/* other treasures */
{
addstr("You have found some treasure. Do you want to inspect it ? ");
diff --git a/games/phantasia/gamesupport.c b/games/phantasia/gamesupport.c
index db103a1..bea933a 100644
--- a/games/phantasia/gamesupport.c
+++ b/games/phantasia/gamesupport.c
@@ -17,12 +17,12 @@
/
/ RETURN VALUE: none
/
-/ MODULES CALLED: freerecord(), writerecord(), descrstatus(), truncstring(),
-/ time(), more(), wmove(), wclear(), strcmp(), printw(), strcpy(),
-/ infloat(), waddstr(), cleanup(), findname(), userlist(), mvprintw(),
+/ MODULES CALLED: freerecord(), writerecord(), descrstatus(), truncstring(),
+/ time(), more(), wmove(), wclear(), strcmp(), printw(), strcpy(),
+/ infloat(), waddstr(), cleanup(), findname(), userlist(), mvprintw(),
/ localtime(), getanswer(), descrtype(), getstring()
/
-/ GLOBAL INPUTS: LINES, *Login, Other, Wizard, Player, *stdscr, Databuf[],
+/ GLOBAL INPUTS: LINES, *Login, Other, Wizard, Player, *stdscr, Databuf[],
/ Fileloc
/
/ GLOBAL OUTPUTS: Echo
@@ -226,7 +226,7 @@ short *sptr; /* pointer to short item to change */
if (strcmp(Databuf, playerp->p_password) != 0)
continue;
}
-
+
if (c == 'A')
/* get new name */
{
@@ -537,7 +537,7 @@ register int count = 0; /* count in file */
/
/ MODULES CALLED: fread(), fopen(), printf(), fclose()
/
-/ GLOBAL INPUTS:
+/ GLOBAL INPUTS:
/
/ GLOBAL OUTPUTS: none
/
@@ -660,7 +660,7 @@ long loc = 0L; /* location in file */
/
/ RETURN VALUE: none
/
-/ MODULES CALLED: fread(), fseek(), fopen(), error(), strcmp(), fclose(),
+/ MODULES CALLED: fread(), fseek(), fopen(), error(), strcmp(), fclose(),
/ strcpy(), fwrite(), descrtype()
/
/ GLOBAL INPUTS: Player
diff --git a/games/phantasia/interplayer.c b/games/phantasia/interplayer.c
index adc7e1b..7c023d9 100644
--- a/games/phantasia/interplayer.c
+++ b/games/phantasia/interplayer.c
@@ -79,12 +79,12 @@ long foeloc = 0L; /* location in file of person to fight */
/
/ RETURN VALUE: none
/
-/ MODULES CALLED: readrecord(), readmessage(), writerecord(), collecttaxes(),
-/ displaystats(), fabs(), more(), death(), sleep(), wmove(), waddch(), printw(),
-/ myturn(), altercoordinates(), waddstr(), wrefresh(), mvprintw(),
+/ MODULES CALLED: readrecord(), readmessage(), writerecord(), collecttaxes(),
+/ displaystats(), fabs(), more(), death(), sleep(), wmove(), waddch(), printw(),
+/ myturn(), altercoordinates(), waddstr(), wrefresh(), mvprintw(),
/ getanswer(), wclrtoeol(), wclrtobot()
/
-/ GLOBAL INPUTS: Foestrikes, LINES, Lines, Other, Shield, Player, *stdscr,
+/ GLOBAL INPUTS: Foestrikes, LINES, Lines, Other, Shield, Player, *stdscr,
/ Fileloc, *Enemyname
/
/ GLOBAL OUTPUTS: Foestrikes, Lines, Shield, Player, Luckout, *Enemyname
@@ -347,10 +347,10 @@ LEAVE:
/
/ RETURN VALUE: none
/
-/ MODULES CALLED: writerecord(), inputoption(), floor(), wmove(), drandom(),
+/ MODULES CALLED: writerecord(), inputoption(), floor(), wmove(), drandom(),
/ waddstr(), wrefresh(), mvprintw(), wclrtoeol(), wclrtobot()
/
-/ GLOBAL INPUTS: Lines, Other, Player, *stdscr, Fileloc, Luckout,
+/ GLOBAL INPUTS: Lines, Other, Player, *stdscr, Fileloc, Luckout,
/ *Enemyname
/
/ GLOBAL OUTPUTS: Foestrikes, Lines, Player, Luckout
@@ -380,7 +380,7 @@ int ch; /* input */
{
default: /* fight */
dtemp = ROLL(2.0, Player.p_might);
-HIT:
+HIT:
mvprintw(Lines++, 0, "You hit %s %.0f times!", Enemyname, dtemp);
Player.p_sin += 0.5;
Player.p_1scratch += dtemp;
@@ -516,8 +516,8 @@ long loc = 0L; /* location in energy void file */
/
/ RETURN VALUE: none
/
-/ MODULES CALLED: writerecord(), more(), fread(), death(), fseek(), sleep(),
-/ floor(), wmove(), waddch(), drandom(), printw(), altercoordinates(),
+/ MODULES CALLED: writerecord(), more(), fread(), death(), fseek(), sleep(),
+/ floor(), wmove(), waddch(), drandom(), printw(), altercoordinates(),
/ waddstr(), wrefresh(), encounter(), writevoid()
/
/ GLOBAL INPUTS: Other, Player, *stdscr, Enrgyvoid, *Playersfp
@@ -654,7 +654,7 @@ long loc; /* location in file of other players */
Player.p_mana =
Player.p_energy =
Player.p_maxenergy =
- Player.p_magiclvl =
+ Player.p_magiclvl =
Player.p_brains =
Player.p_experience =
Player.p_quickness = 1.0;
@@ -708,8 +708,8 @@ long loc; /* location in file of other players */
/
/ RETURN VALUE: none
/
-/ MODULES CALLED: descrstatus(), descrlocation(), more(), fread(), fseek(),
-/ floor(), wmove(), printw(), waddstr(), distance(), wrefresh(),
+/ MODULES CALLED: descrstatus(), descrlocation(), more(), fread(), fseek(),
+/ floor(), wmove(), printw(), waddstr(), distance(), wrefresh(),
/ descrtype(), wclrtobot()
/
/ GLOBAL INPUTS: LINES, Other, Circle, Wizard, Player, *stdscr, *Playersfp
@@ -766,7 +766,7 @@ register int numusers = 0; /* number of users on file */
/* those nearer the origin can be seen */
|| Player.p_palantir)
/* palantir enables one to see others */
- && (Other.p_status != S_CLOAKED
+ && (Other.p_status != S_CLOAKED
|| (Player.p_specialtype == SC_VALAR && Player.p_palantir))
/* not cloaked; valar can see through cloak with a palantir */
&& Other.p_specialtype != SC_VALAR)
@@ -778,7 +778,7 @@ register int numusers = 0; /* number of users on file */
/* cannot see player's coordinates */
printw("%-20s %19.19s ",
Other.p_name, descrlocation(&Other, TRUE));
-
+
printw("%6.0f %s %-9.9s%s\n", Other.p_level, descrtype(&Other, TRUE),
Other.p_login, descrstatus(&Other));
@@ -806,7 +806,7 @@ register int numusers = 0; /* number of users on file */
/
/ RETURN VALUE: none
/
-/ MODULES CALLED: writerecord(), fread(), fseek(), fopen(), wmove(), fclose(),
+/ MODULES CALLED: writerecord(), fread(), fseek(), fopen(), wmove(), fclose(),
/ fwrite(), altercoordinates(), waddstr(), fprintf()
/
/ GLOBAL INPUTS: *Energyvoidfp, Other, Player, *stdscr,
@@ -889,12 +889,12 @@ long loc = 0L; /* location of old king in player file */
/
/ RETURN VALUE: none
/
-/ MODULES CALLED: writerecord(), truncstring(), fread(), fseek(), fopen(),
-/ floor(), wmove(), drandom(), fclose(), fwrite(), sscanf(), strcmp(),
-/ infloat(), waddstr(), findname(), distance(), userlist(), mvprintw(),
+/ MODULES CALLED: writerecord(), truncstring(), fread(), fseek(), fopen(),
+/ floor(), wmove(), drandom(), fclose(), fwrite(), sscanf(), strcmp(),
+/ infloat(), waddstr(), findname(), distance(), userlist(), mvprintw(),
/ allocvoid(), getanswer(), getstring(), wclrtoeol(), writevoid()
/
-/ GLOBAL INPUTS: *Energyvoidfp, Other, Illcmd[], Wizard, Player, *stdscr,
+/ GLOBAL INPUTS: *Energyvoidfp, Other, Illcmd[], Wizard, Player, *stdscr,
/ Databuf[], Enrgyvoid
/
/ GLOBAL OUTPUTS: Other, Player, Enrgyvoid
diff --git a/games/phantasia/io.c b/games/phantasia/io.c
index 8a0a614..7736531 100644
--- a/games/phantasia/io.c
+++ b/games/phantasia/io.c
@@ -18,7 +18,7 @@
/
/ RETURN VALUE: none
/
-/ MODULES CALLED: wmove(), _filbuf(), clearok(), waddstr(), wrefresh(),
+/ MODULES CALLED: wmove(), _filbuf(), clearok(), waddstr(), wrefresh(),
/ wclrtoeol()
/
/ GLOBAL INPUTS: Echo, _iob[], Wizard, *stdscr
@@ -212,9 +212,9 @@ inputoption()
/
/ RETURN VALUE: none
/
-/ MODULES CALLED: fork(), exit(), wait(), death(), alarm(), execl(), wmove(),
-/ getgid(), signal(), getenv(), wclear(), setuid(), getuid(), setgid(),
-/ crmode(), clearok(), waddstr(), cleanup(), wrefresh(), leavegame(),
+/ MODULES CALLED: fork(), exit(), wait(), death(), alarm(), execl(), wmove(),
+/ getgid(), signal(), getenv(), wclear(), setuid(), getuid(), setgid(),
+/ crmode(), clearok(), waddstr(), cleanup(), wrefresh(), leavegame(),
/ getanswer()
/
/ GLOBAL INPUTS: Player, *stdscr
@@ -300,10 +300,10 @@ unsigned savealarm; /* to save alarm value */
/
/ RETURN VALUE: none
/
-/ MODULES CALLED: alarm(), wmove(), waddch(), signal(), setjmp(), strchr(),
+/ MODULES CALLED: alarm(), wmove(), waddch(), signal(), setjmp(), strchr(),
/ _filbuf(), clearok(), toupper(), wrefresh(), mvprintw(), wclrtoeol()
/
-/ GLOBAL INPUTS: catchalarm(), Echo, _iob[], _ctype[], *stdscr, Timeout,
+/ GLOBAL INPUTS: catchalarm(), Echo, _iob[], _ctype[], *stdscr, Timeout,
/ Timeoenv[]
/
/ GLOBAL OUTPUTS: _iob[]
diff --git a/games/phantasia/main.c b/games/phantasia/main.c
index 84e6ce1..90ddcba 100644
--- a/games/phantasia/main.c
+++ b/games/phantasia/main.c
@@ -49,7 +49,7 @@
*/
/*
- * All source files are set up for 'vi' with shiftwidth=4, tabstop=8.
+ * All source files are set up for 'vi' with shiftwidth=4, tabstop=8.
*/
/* */
@@ -73,16 +73,16 @@
/
/ RETURN VALUE: none
/
-/ MODULES CALLED: monstlist(), checkenemy(), activelist(),
-/ throneroom(), checkbattle(), readmessage(), changestats(), writerecord(),
-/ tradingpost(), adjuststats(), recallplayer(), displaystats(), checktampered(),
-/ fabs(), rollnewplayer(), time(), exit(), sqrt(), floor(), wmove(),
-/ signal(), strcat(), purgeoldplayers(), getuid(), isatty(), wclear(),
-/ strcpy(), system(), altercoordinates(), cleanup(), waddstr(), procmain(),
-/ playinit(), leavegame(), localtime(), getanswer(), neatstuff(), initialstate(),
+/ MODULES CALLED: monstlist(), checkenemy(), activelist(),
+/ throneroom(), checkbattle(), readmessage(), changestats(), writerecord(),
+/ tradingpost(), adjuststats(), recallplayer(), displaystats(), checktampered(),
+/ fabs(), rollnewplayer(), time(), exit(), sqrt(), floor(), wmove(),
+/ signal(), strcat(), purgeoldplayers(), getuid(), isatty(), wclear(),
+/ strcpy(), system(), altercoordinates(), cleanup(), waddstr(), procmain(),
+/ playinit(), leavegame(), localtime(), getanswer(), neatstuff(), initialstate(),
/ scorelist(), titlelist()
/
-/ GLOBAL INPUTS: *Login, Throne, Wizard, Player, *stdscr, Changed, Databuf[],
+/ GLOBAL INPUTS: *Login, Throne, Wizard, Player, *stdscr, Changed, Databuf[],
/ Fileloc, Stattable[]
/
/ GLOBAL OUTPUTS: Wizard, Player, Changed, Fileloc, Timeout, *Statptr
@@ -320,13 +320,13 @@ double dtemp; /* for temporary calculations */
/
/ RETURN VALUE: none
/
-/ MODULES CALLED: time(), fopen(), srandom(), error(), getuid(), getlogin(),
+/ MODULES CALLED: time(), fopen(), srandom(), error(), getuid(), getlogin(),
/ getpwuid()
/
-/ GLOBAL INPUTS:
+/ GLOBAL INPUTS:
/
-/ GLOBAL OUTPUTS: *Energyvoidfp, Echo, Marsh, *Login, Users, Beyond,
-/ Throne, Wizard, Changed, Okcount, Timeout, Windows, *Monstfp, *Messagefp,
+/ GLOBAL OUTPUTS: *Energyvoidfp, Echo, Marsh, *Login, Users, Beyond,
+/ Throne, Wizard, Changed, Okcount, Timeout, Windows, *Monstfp, *Messagefp,
/ *Playersfp
/
/ DESCRIPTION:
@@ -349,7 +349,7 @@ initialstate()
/* setup login name */
if ((Login = getlogin()) == NULL)
Login = getpwuid(getuid())->pw_name;
-
+
/* open some files */
if ((Playersfp = fopen(_PATH_PEOPLE, "r+")) == NULL)
error(_PATH_PEOPLE);
@@ -382,8 +382,8 @@ initialstate()
/
/ RETURN VALUE: none
/
-/ MODULES CALLED: initplayer(), allocrecord(), truncstring(), fabs(), wmove(),
-/ wclear(), sscanf(), strcmp(), genchar(), waddstr(), findname(), mvprintw(),
+/ MODULES CALLED: initplayer(), allocrecord(), truncstring(), fabs(), wmove(),
+/ wclear(), sscanf(), strcmp(), genchar(), waddstr(), findname(), mvprintw(),
/ getanswer(), getstring()
/
/ GLOBAL INPUTS: Other, Wizard, Player, *stdscr, Databuf[]
@@ -499,12 +499,12 @@ int ch; /* input */
/
/ RETURN VALUE: none
/
-/ MODULES CALLED: dotampered(), changestats(), inputoption(), allstatslist(),
-/ fopen(), wmove(), drandom(), sscanf(), fclose(), altercoordinates(),
-/ waddstr(), fprintf(), distance(), userlist(), leavegame(), encounter(),
+/ MODULES CALLED: dotampered(), changestats(), inputoption(), allstatslist(),
+/ fopen(), wmove(), drandom(), sscanf(), fclose(), altercoordinates(),
+/ waddstr(), fprintf(), distance(), userlist(), leavegame(), encounter(),
/ getstring(), wclrtobot()
/
-/ GLOBAL INPUTS: Circle, Illcmd[], Throne, Wizard, Player, *stdscr,
+/ GLOBAL INPUTS: Circle, Illcmd[], Throne, Wizard, Player, *stdscr,
/ Databuf[], Illmove[]
/
/ GLOBAL OUTPUTS: Player, Changed
@@ -650,7 +650,7 @@ bool hasmoved = FALSE; /* set if player has moved */
*/
if (Player.p_level < MEL_TELEPORT || Player.p_magiclvl < ML_TELEPORT)
ILLCMD();
- else
+ else
for (loop = 3; loop; --loop)
{
mvaddstr(4, 0, "X Y Coordinates ? ");
@@ -735,7 +735,7 @@ bool hasmoved = FALSE; /* set if player has moved */
/
/ RETURN VALUE: none
/
-/ MODULES CALLED: fread(), fseek(), fopen(), fgets(), wmove(), strcpy(),
+/ MODULES CALLED: fread(), fseek(), fopen(), fgets(), wmove(), strcpy(),
/ fclose(), strlen(), waddstr(), sprintf(), wrefresh()
/
/ GLOBAL INPUTS: Lines, Other, *stdscr, Databuf[], *Playersfp
@@ -867,8 +867,8 @@ char hiname[21], nxtname[21];/* used for finding the two highest players */
/
/ RETURN VALUE: none
/
-/ MODULES CALLED: writerecord(), truncstring(), more(), death(), wmove(),
-/ wclear(), strcmp(), printw(), cleanup(), waddstr(), findname(), mvprintw(),
+/ MODULES CALLED: writerecord(), truncstring(), more(), death(), wmove(),
+/ wclear(), strcmp(), printw(), cleanup(), waddstr(), findname(), mvprintw(),
/ getanswer(), getstring()
/
/ GLOBAL INPUTS: Player, *stdscr, Databuf[]
@@ -954,7 +954,7 @@ int ch; /* input */
/
/ RETURN VALUE: none
/
-/ MODULES CALLED: collecttaxes(), floor(), wmove(), drandom(), infloat(),
+/ MODULES CALLED: collecttaxes(), floor(), wmove(), drandom(), infloat(),
/ waddstr(), mvprintw(), getanswer()
/
/ GLOBAL INPUTS: Player, *stdscr, *Statptr
@@ -1112,7 +1112,7 @@ register struct charstats *statptr;/* for pointing into Stattable */
if (subscript != C_SUPER || !Wizard)
/* fighter is default */
subscript = C_FIGHTER;
-
+
statptr = &Stattable[subscript];
Player.p_quickness =
@@ -1148,7 +1148,7 @@ register struct charstats *statptr;/* for pointing into Stattable */
/
/ RETURN VALUE: none
/
-/ MODULES CALLED: signal(), wclear(), noecho(), crmode(), initscr(),
+/ MODULES CALLED: signal(), wclear(), noecho(), crmode(), initscr(),
/ wrefresh()
/
/ GLOBAL INPUTS: *stdscr, ill_sig()
@@ -1255,7 +1255,7 @@ playinit()
/
/ MODULES CALLED: exit(), wmove(), fclose(), endwin(), nocrmode(), wrefresh()
/
-/ GLOBAL INPUTS: *Energyvoidfp, LINES, *stdscr, Windows, *Monstfp,
+/ GLOBAL INPUTS: *Energyvoidfp, LINES, *stdscr, Windows, *Monstfp,
/ *Messagefp, *Playersfp
/
/ GLOBAL OUTPUTS: none
diff --git a/games/phantasia/misc.c b/games/phantasia/misc.c
index 48b518e..133bdfb 100644
--- a/games/phantasia/misc.c
+++ b/games/phantasia/misc.c
@@ -180,9 +180,9 @@ static char *nametable[4][4] = /* names of places */
/
/ RETURN VALUE: none
/
-/ MODULES CALLED: writerecord(), adjuststats(), fabs(), more(), sqrt(),
-/ sleep(), floor(), wmove(), drandom(), wclear(), printw(),
-/ altercoordinates(), infloat(), waddstr(), wrefresh(), mvprintw(), getanswer(),
+/ MODULES CALLED: writerecord(), adjuststats(), fabs(), more(), sqrt(),
+/ sleep(), floor(), wmove(), drandom(), wclear(), printw(),
+/ altercoordinates(), infloat(), waddstr(), wrefresh(), mvprintw(), getanswer(),
/ wclrtoeol(), wclrtobot()
/
/ GLOBAL INPUTS: Menu[], Circle, Player, *stdscr, Fileloc, Nobetter[]
@@ -539,7 +539,7 @@ allstatslist()
{
static char *flags[] = /* to print value of some bools */
{
- "False",
+ "False",
" True"
};
@@ -560,8 +560,8 @@ static char *flags[] = /* to print value of some bools */
mvprintw(15, 40, "Sword : %9.0f", Player.p_sword);
mvprintw(16, 40, "Quickslver: %9.0f", Player.p_quksilver);
- mvprintw(18, 0, "Blessing: %s Ring: %s Virgin: %s Palantir: %s",
- flags[Player.p_blessing], flags[Player.p_ring.ring_type != R_NONE],
+ mvprintw(18, 0, "Blessing: %s Ring: %s Virgin: %s Palantir: %s",
+ flags[Player.p_blessing], flags[Player.p_ring.ring_type != R_NONE],
flags[Player.p_virgin], flags[Player.p_palantir]);
}
/* */
@@ -843,9 +843,9 @@ leavegame()
/
/ RETURN VALUE: none
/
-/ MODULES CALLED: freerecord(), enterscore(), more(), exit(), fread(),
-/ fseek(), execl(), fopen(), floor(), wmove(), drandom(), wclear(), strcmp(),
-/ fwrite(), fflush(), printw(), strcpy(), fclose(), waddstr(), cleanup(),
+/ MODULES CALLED: freerecord(), enterscore(), more(), exit(), fread(),
+/ fseek(), execl(), fopen(), floor(), wmove(), drandom(), wclear(), strcmp(),
+/ fwrite(), fflush(), printw(), strcpy(), fclose(), waddstr(), cleanup(),
/ fprintf(), wrefresh(), getanswer(), descrtype()
/
/ GLOBAL INPUTS: Curmonster, Wizard, Player, *stdscr, Fileloc, *Monstfp
@@ -1019,7 +1019,7 @@ long place;
/
/ GLOBAL OUTPUTS: none
/
-/ DESCRIPTION:
+/ DESCRIPTION:
/ Experience level is a geometric progression. This has been finely
/ tuned over the years, and probably should not be changed.
/
@@ -1043,7 +1043,7 @@ double experience;
/
/ AUTHOR: E. A. Estes, 12/4/85
/
-/ ARGUMENTS:
+/ ARGUMENTS:
/ char *string - pointer to null terminated string
/
/ RETURN VALUE: none
@@ -1054,7 +1054,7 @@ double experience;
/
/ GLOBAL OUTPUTS: none
/
-/ DESCRIPTION:
+/ DESCRIPTION:
/ Put nul characters in place of spaces at the end of the string.
/
*************************************************************************/
@@ -1077,7 +1077,7 @@ register int length; /* length of string */
/
/ AUTHOR: E. A. Estes, 12/16/85
/
-/ ARGUMENTS:
+/ ARGUMENTS:
/ double xnew, ynew - new x, y coordinates
/ int operation - operation to perform with coordinates
/
@@ -1089,7 +1089,7 @@ register int length; /* length of string */
/
/ GLOBAL OUTPUTS: Marsh, Circle, Beyond, Throne, Player, Changed
/
-/ DESCRIPTION:
+/ DESCRIPTION:
/ This module is called whenever the player's coordinates are altered.
/ If the player is beyond the point of no return, he/she is forced
/ to stay there.
@@ -1130,7 +1130,7 @@ int operation;
ynew = Player.p_y + SGN(Player.p_y) * ROLL(50 * Circle, 250 * Circle);
break;
}
-
+
/* now set location flags and adjust coordinates */
Circle = CIRCLE(Player.p_x = floor(xnew), Player.p_y = floor(ynew));
@@ -1361,7 +1361,7 @@ register struct player *playerp;
playerp->p_type = C_FIGHTER; /* default */
playerp->p_specialtype = SC_NONE;
playerp->p_lives =
- playerp->p_crowns =
+ playerp->p_crowns =
playerp->p_charms =
playerp->p_amulets =
playerp->p_holywater =
@@ -1463,7 +1463,7 @@ error(whichfile)
/
/ AUTHOR: E. A. Estes, 12/4/85
/
-/ ARGUMENTS:
+/ ARGUMENTS:
/ double x1, y1 - x, y coordinates of first point
/ double x2, y2 - x, y coordinates of second point
/
diff --git a/games/phantasia/setup.c b/games/phantasia/setup.c
index 1d6587b..83d8b44 100644
--- a/games/phantasia/setup.c
+++ b/games/phantasia/setup.c
@@ -18,15 +18,15 @@
/
/ RETURN VALUE: none
/
-/ MODULES CALLED: time(), exit(), stat(), Error(), creat(), close(), fopen(),
-/ fgets(), floor(), srandom(), umask(), drandom(), strcpy(), getuid(),
+/ MODULES CALLED: time(), exit(), stat(), Error(), creat(), close(), fopen(),
+/ fgets(), floor(), srandom(), umask(), drandom(), strcpy(), getuid(),
/ unlink(), fwrite(), fclose(), sscanf(), printf(), strlen(), fprintf()
/
/ GLOBAL INPUTS: Curmonster, _iob[], Databuf[], *Monstfp, Enrgyvoid
/
/ GLOBAL OUTPUTS: Curmonster, Databuf[], *Monstfp, Enrgyvoid
/
-/ DESCRIPTION:
+/ DESCRIPTION:
/
/ This program tries to verify the parameters specified in
/ the Makefile.
@@ -247,7 +247,7 @@ char *str, *file;
/
/ GLOBAL OUTPUTS: none
/
-/ DESCRIPTION:
+/ DESCRIPTION:
/
*************************************************************************/
OpenPOWER on IntegriCloud