From 446e5b6b68e5ade0a23fe052fd9166c5779c271a Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 4 May 2024 15:14:49 +0200 Subject: Reformatted EndSym() --- FICS/gamedb.c | 50 ++++++++++++++++++++++++++++---------------------- 1 file changed, 28 insertions(+), 22 deletions(-) (limited to 'FICS/gamedb.c') diff --git a/FICS/gamedb.c b/FICS/gamedb.c index 4a78ab3..d33cb51 100644 --- a/FICS/gamedb.c +++ b/FICS/gamedb.c @@ -426,30 +426,36 @@ PUBLIC char *EndString(int g, int personal) return (endstr); } -PUBLIC char *EndSym(int g) +PUBLIC char * +EndSym(int g) { - static char *symbols[] = {"1-0", "0-1", "1/2-1/2", "*"}; - - switch (garray[g].result) { - case END_CHECKMATE: - case END_RESIGN: - case END_FLAG: - case END_ADJWIN: - return ((garray[g].winner == WHITE) ? symbols[0] : symbols[1]); - break; - case END_AGREEDDRAW: - case END_BOTHFLAG: - case END_REPETITION: - case END_50MOVERULE: - case END_STALEMATE: - case END_NOMATERIAL: - case END_FLAGNOMATERIAL: - case END_ADJDRAW: - return (symbols[2]); - break; - } + static char *symbols[] = { + "1-0", + "0-1", + "1/2-1/2", + "*" + }; + + switch (garray[g].result) { + case END_CHECKMATE: + case END_RESIGN: + case END_FLAG: + case END_ADJWIN: + return ((garray[g].winner == WHITE) ? symbols[0] : symbols[1]); + break; + case END_AGREEDDRAW: + case END_BOTHFLAG: + case END_REPETITION: + case END_50MOVERULE: + case END_STALEMATE: + case END_NOMATERIAL: + case END_FLAGNOMATERIAL: + case END_ADJDRAW: + return (symbols[2]); + break; + } - return (symbols[3]); + return (symbols[3]); } PUBLIC char * -- cgit v1.2.3