diff options
Diffstat (limited to 'robots/play_level.c')
-rw-r--r-- | robots/play_level.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/robots/play_level.c b/robots/play_level.c index b9fa09f5..f338e9df 100644 --- a/robots/play_level.c +++ b/robots/play_level.c @@ -1,4 +1,4 @@ -/* $NetBSD: play_level.c,v 1.8 2009/07/20 06:00:56 dholland Exp $ */ +/* $NetBSD: play_level.c,v 1.9 2009/07/20 06:39:06 dholland Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,10 +34,12 @@ #if 0 static char sccsid[] = "@(#)play_level.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: play_level.c,v 1.8 2009/07/20 06:00:56 dholland Exp $"); +__RCSID("$NetBSD: play_level.c,v 1.9 2009/07/20 06:39:06 dholland Exp $"); #endif #endif /* not lint */ +#include <curses.h> +#include <unistd.h> #include "robots.h" /* @@ -77,15 +79,15 @@ play_level(void) if (Real_time) alarm(0); if (Field[My_pos.y][My_pos.x] != 0) - Dead = TRUE; + Dead = true; if (!Dead) - move_robots(FALSE); + move_robots(false); if (Was_bonus) { move(Y_PROMPT, X_PROMPT); clrtoeol(); move(Y_PROMPT + 1, X_PROMPT); clrtoeol(); - Was_bonus = FALSE; + Was_bonus = false; } } @@ -94,14 +96,14 @@ play_level(void) */ if (!Dead) { - Was_bonus = FALSE; + Was_bonus = false; if (Level == Start_level && Start_level > 1) { move(Y_PROMPT, X_PROMPT); printw("Advance bonus: %d", S_BONUS); refresh(); add_score(S_BONUS); - Was_bonus = TRUE; + Was_bonus = true; } if (Wait_bonus != 0) { @@ -112,7 +114,7 @@ play_level(void) printw("Wait bonus: %d", Wait_bonus); refresh(); add_score(Wait_bonus); - Was_bonus = TRUE; + Was_bonus = true; } } } |