From 472a88b04f4b39047a726e841c8c3da5cf45b902 Mon Sep 17 00:00:00 2001 From: pjanzen Date: Fri, 7 Apr 2000 04:31:45 +0000 Subject: [PATCH] Fix operator precedence errors: NetBSD PR 9698. --- games/phantasia/fight.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/games/phantasia/fight.c b/games/phantasia/fight.c index 6fd80cd9b3a..c7488183461 100644 --- a/games/phantasia/fight.c +++ b/games/phantasia/fight.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fight.c,v 1.3 1998/11/29 19:56:55 pjanzen Exp $ */ +/* $OpenBSD: fight.c,v 1.4 2000/04/07 04:31:45 pjanzen Exp $ */ /* $NetBSD: fight.c,v 1.2 1995/03/24 03:58:39 cgd Exp $ */ /* @@ -653,7 +653,7 @@ monsthits() mvprintw(Lines++, 0, "%s flew away, and left you to contend with one of its friends.", Enemyname); - Whichmonster = 55 + (drandom() > 0.5) ? 22 : 0; + Whichmonster = 55 + ((drandom() > 0.5) ? 22 : 0); longjmp(Fightenv, 0); /* NOTREACHED */ @@ -1069,7 +1069,7 @@ callmonster(which) Curmonster.m_energy = Player.p_might * 30.0; Curmonster.m_type = SM_MORGOTH; Curmonster.m_speed = Player.p_speed * 1.1 - + (Player.p_specialtype == SC_EXVALAR) ? Player.p_speed : 0.0; + + ((Player.p_specialtype == SC_EXVALAR) ? Player.p_speed : 0.0); Curmonster.m_flock = 0.0; Curmonster.m_treasuretype = 0; Curmonster.m_experience = 0.0; -- 2.20.1