From 56b3b679266d099eba0ac4e8282b239c652357c3 Mon Sep 17 00:00:00 2001 From: jsm Date: Wed, 8 Sep 1999 21:57:16 +0000 Subject: Use the symbolic names `SEEK_SET' and `O_RDONLY' where appropriate in the games. --- phantasia/fight.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'phantasia/fight.c') diff --git a/phantasia/fight.c b/phantasia/fight.c index 3fb9c6bf..f23c37a5 100644 --- a/phantasia/fight.c +++ b/phantasia/fight.c @@ -1,4 +1,4 @@ -/* $NetBSD: fight.c,v 1.4 1998/08/30 09:19:39 veego Exp $ */ +/* $NetBSD: fight.c,v 1.5 1999/09/08 21:57:18 jsm Exp $ */ /* * fight.c Phantasia monster fighting routines @@ -844,7 +844,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 */ @@ -879,7 +879,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); } -- cgit v1.2.3