diff options
author | veego <veego@NetBSD.org> | 1998-08-30 09:19:36 +0000 |
---|---|---|
committer | veego <veego@NetBSD.org> | 1998-08-30 09:19:36 +0000 |
commit | 5a555a984855e94b0fc3c9154da6b65208ba2c70 (patch) | |
tree | 285ed9cc28655053e6f1520670b43ae864d0c264 /phantasia | |
parent | c4c1ed4f214d1b50a09d0c42fa9c741ac18fb482 (diff) | |
download | bsdgames-darwin-5a555a984855e94b0fc3c9154da6b65208ba2c70.tar.gz bsdgames-darwin-5a555a984855e94b0fc3c9154da6b65208ba2c70.tar.zst bsdgames-darwin-5a555a984855e94b0fc3c9154da6b65208ba2c70.zip |
Add braces to make the new egcs happy.
Diffstat (limited to 'phantasia')
-rw-r--r-- | phantasia/fight.c | 8 | ||||
-rw-r--r-- | phantasia/main.c | 5 | ||||
-rw-r--r-- | phantasia/misc.c | 5 |
3 files changed, 11 insertions, 7 deletions
diff --git a/phantasia/fight.c b/phantasia/fight.c index cfcea545..3fb9c6bf 100644 --- a/phantasia/fight.c +++ b/phantasia/fight.c @@ -1,4 +1,4 @@ -/* $NetBSD: fight.c,v 1.3 1997/10/13 02:18:12 lukem Exp $ */ +/* $NetBSD: fight.c,v 1.4 1998/08/30 09:19:39 veego Exp $ */ /* * fight.c Phantasia monster fighting routines @@ -203,13 +203,14 @@ playerhits() mvaddstr(7, 0, "1:Melee 2:Skirmish 3:Evade 4:Spell 5:Nick "); - if (!Luckout) + if (!Luckout) { /* haven't tried to luckout yet */ if (Curmonster.m_type == SM_MORGOTH) /* cannot luckout against Morgoth */ addstr("6:Ally "); else addstr("6:Luckout "); + } if (Player.p_ring.ring_type != R_NONE) /* player has a ring */ @@ -951,7 +952,7 @@ awardtreasure() ch = getanswer("NY", FALSE); addstr("\n\n"); - if (ch == 'Y') + if (ch == 'Y') { if (drandom() < treasuretype / 35.0 + 0.04) /* cursed */ { @@ -959,6 +960,7 @@ awardtreasure() cursedtreasure(); } else collecttaxes(gold, gems); + } return; } else diff --git a/phantasia/main.c b/phantasia/main.c index 3698b412..b571be74 100644 --- a/phantasia/main.c +++ b/phantasia/main.c @@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.4 1997/10/13 02:18:27 lukem Exp $ */ +/* $NetBSD: main.c,v 1.5 1998/08/30 09:19:39 veego Exp $ */ /* * Phantasia 3.3.2 -- Interterminal fantasy game @@ -218,7 +218,7 @@ main(argc, argv) checkbattle(); /* check for player to player battle */ neatstuff(); /* gurus, medics, etc. */ - if (Player.p_status == S_CLOAKED) + if (Player.p_status == S_CLOAKED) { /* costs 3 mana per turn to be cloaked */ if (Player.p_mana > 3.0) Player.p_mana -= 3.0; @@ -228,6 +228,7 @@ main(argc, argv) Player.p_status = S_PLAYING; Changed = TRUE; } + } if (Player.p_status != S_PLAYING && Player.p_status != S_CLOAKED) /* change status back to S_PLAYING */ diff --git a/phantasia/misc.c b/phantasia/misc.c index f741d7f1..4b5dc0f4 100644 --- a/phantasia/misc.c +++ b/phantasia/misc.c @@ -1,4 +1,4 @@ -/* $NetBSD: misc.c,v 1.3 1997/10/13 02:18:30 lukem Exp $ */ +/* $NetBSD: misc.c,v 1.4 1998/08/30 09:19:39 veego Exp $ */ /* * misc.c Phantasia miscellaneous support routines @@ -343,7 +343,7 @@ tradingpost() printw("A blessing requires a %.0f gp donation. Still want one ? ", blessingcost); ch = getanswer("NY", FALSE); - if (ch == 'Y') + if (ch == 'Y') { if (Player.p_gold < blessingcost) ++cheat; else { @@ -354,6 +354,7 @@ tradingpost() else Player.p_blessing = TRUE; } + } break; } break; |