X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fbs.c;h=9a43e6233bd2240ccce91967fe379d2f2429a830;hp=ebcabc42d3bfabd7f4b75d747e30e53e60c1bc83;hb=f486c68b1efe3bab5739c3f464fde6685a52bee5;hpb=1c551ea75ea57f9186fbe8d79674ac85baa4d358 diff --git a/test/bs.c b/test/bs.c index ebcabc42..9a43e623 100644 --- a/test/bs.c +++ b/test/bs.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2010,2012 Free Software Foundation, Inc. * + * Copyright (c) 1998-2012,2013 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -34,7 +34,7 @@ * v2.0 featuring strict ANSI/POSIX conformance, November 1993. * v2.1 with ncurses mouse support, September 1995 * - * $Id: bs.c,v 1.59 2012/12/16 00:20:49 tom Exp $ + * $Id: bs.c,v 1.60 2013/02/16 19:54:37 tom Exp $ */ #include @@ -956,7 +956,7 @@ cpufire(int x, int y) bool hit, sunk; ship_t *ss = NULL; - hit = board[PLAYER][x][y]; + hit = (bool) board[PLAYER][x][y]; hits[COMPUTER][x][y] = (hit ? MARK_HIT : MARK_MISS); MvPrintw(PROMPTLINE, 0, "I shoot at %c%d. I %s!", y + 'A', x, hit ? "hit" :