Patch suggested by Dennis Pinckard <dpinckard@pinckard.us>.
cgoto(cury, curx);
#ifdef A_COLOR
if (has_colors())
+ {
if (hit)
attron(COLOR_PAIR(COLOR_RED));
else
attron(COLOR_PAIR(COLOR_GREEN));
+ }
#endif /* A_COLOR */
(void) addch((chtype)hits[PLAYER][curx][cury]);
#ifdef A_COLOR
pgoto(y, x);
#ifdef A_COLOR
- if (has_colors())
- if (hit)
- attron(COLOR_PAIR(COLOR_RED));
- else
- attron(COLOR_PAIR(COLOR_GREEN));
+ if (has_colors())
+ {
+ if (hit)
+ attron(COLOR_PAIR(COLOR_RED));
+ else
+ attron(COLOR_PAIR(COLOR_GREEN));
+ }
#endif /* A_COLOR */
(void)addch((chtype)(hit ? SHOWHIT : SHOWSPLASH));
#ifdef A_COLOR