summaryrefslogtreecommitdiff
path: root/games/phantasia/fight.c
diff options
context:
space:
mode:
authorPaul Janzen <pjanzen@cvs.openbsd.org>2000-06-29 07:39:46 +0000
committerPaul Janzen <pjanzen@cvs.openbsd.org>2000-06-29 07:39:46 +0000
commit4c4981824991e9ac42791c3203847402110691a2 (patch)
tree06432c05f169b9ff5925f9294f9ceb4cead66974 /games/phantasia/fight.c
parentd177c7dbc6d18498611a5461023183af6388d58f (diff)
use SEEK_SET; improve an error message.
Diffstat (limited to 'games/phantasia/fight.c')
-rw-r--r--games/phantasia/fight.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/games/phantasia/fight.c b/games/phantasia/fight.c
index c7488183461..b3dfcbaebd1 100644
--- a/games/phantasia/fight.c
+++ b/games/phantasia/fight.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fight.c,v 1.4 2000/04/07 04:31:45 pjanzen Exp $ */
+/* $OpenBSD: fight.c,v 1.5 2000/06/29 07:39:42 pjanzen Exp $ */
/* $NetBSD: fight.c,v 1.2 1995/03/24 03:58:39 cgd Exp $ */
/*
@@ -1044,7 +1044,7 @@ callmonster(which)
which = MIN(which, 99); /* make sure within range */
/* fill structure */
- fseek(Monstfp, (long) which * (long) SZ_MONSTERSTRUCT, 0);
+ fseek(Monstfp, (long) which * (long) SZ_MONSTERSTRUCT, SEEK_SET);
fread((char *) &Curmonster, SZ_MONSTERSTRUCT, 1, Monstfp);
/* handle some special monsters */
@@ -1079,7 +1079,7 @@ callmonster(which)
/* pick another name */
{
which = (int) ROLL(0.0, 100.0);
- fseek(Monstfp, (long) which * (long) SZ_MONSTERSTRUCT, 0);
+ fseek(Monstfp, (long) which * (long) SZ_MONSTERSTRUCT, SEEK_SET);
fread(&Othermonster, SZ_MONSTERSTRUCT, 1, Monstfp);
strcpy(Curmonster.m_name, Othermonster.m_name);
}