From a5d50bb62477a642d5415ecfc075da339e4fa84f Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Fri, 18 Jan 2008 00:20:49 -0800 Subject: [PATCH] Mark emptyslots explicitly in the show output --- lg-set.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lg-set.c b/lg-set.c index c5ebbfb..94bebc3 100644 --- a/lg-set.c +++ b/lg-set.c @@ -255,12 +255,18 @@ set_game_handle_show (set_game_t *game, int i, j; s = board_str; - for (i = 0; i < board->num_slots; i++) + for (i = 0; i < board->num_slots; i++) { if (board->slots[i].has_card) { for (j = 0; j < NUM_ATTRIBUTES; j++) *s++ = '0' + board->slots[i].card.attributes[j]; *s++ = ' '; + } else { + *s++ = '-'; + *s++ = '-'; + *s++ = '-'; + *s++ = ' '; } + } *s = '\0'; loudgame_send (&game->lg, peer, board_str); -- 2.43.0