else {
#ifdef HAVE_NCURSES
if (Sets.standout) {
- if (haveColor) attrset(COLOR_PAIR(type & 15));
- else attrset(A_REVERSE);
+ attrset(haveColor ? COLOR_PAIR(type & 15) : A_REVERSE);
}
#endif
switch (Sets.drawstyle) {
if (type == BT_none) addch(' ');
else if (type == BT_shadow) addch(':');
else {
- if (Sets.standout) {
#ifdef HAVE_NCURSES
- if (haveColor)
- attrset(COLOR_PAIR(type & 15));
- else attrset(A_REVERSE);
-#endif
+ if (Sets.standout) {
+ attrset(haveColor ? COLOR_PAIR(type & 15) : A_REVERSE);
}
+#endif
if ((type & 192) == 64)
addch('[');
else if ((type & 192) == 128)
if (Players[player].alive > 0)
if (Players[player].flags & SCF_paused)
if (Game.started > 1)
- window_msg_wide(player, "PAUSED");
+ window_msg_wide(player, MSG_PLAYER_PAUSE);
else
- window_msg_wide(player, "NOT READY");
+ window_msg_wide(player, MSG_PLAYER_JOIN);
else
if (Game.started > 1)
window_msg(player, NULL);
else
- window_msg_wide(player, "READY");
+ window_msg_wide(player, MSG_PLAYER_START);
else if (!Players[player].alive)
- window_msg_wide(player, "GAME OVER");
+ window_msg_wide(player, MSG_PLAYER_STOP);
else
- window_msg_wide(player, "EMPTY");
+ window_msg_wide(player, MSG_PLAYER_PART);
}
void status_tick(void)
{ //display timer
- mvprintw(statusYPos, statusXPos, "timer %7.0f ", CurTimeval() / 1e6);
+ mvprintw(statusYPos, statusXPos, MSG_TIME, CurTimeval() / 1e6);
}
void ScheduleFullRedraw(void)