aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/gamedb.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-05-04 15:14:49 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-05-04 15:14:49 +0200
commit446e5b6b68e5ade0a23fe052fd9166c5779c271a (patch)
tree3484deb7a6ab54d37d1cc45b9c67e8b73b0a80a4 /FICS/gamedb.c
parent300568d922082f51ab5b0d6e5633fc7ab83d80f6 (diff)
Reformatted EndSym()
Diffstat (limited to 'FICS/gamedb.c')
-rw-r--r--FICS/gamedb.c50
1 files changed, 28 insertions, 22 deletions
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 *