aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/gamedb.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-05-04 16:37:24 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-05-04 16:37:24 +0200
commitaff7f6b31a48f2223376427a88414b1fdd7e0b55 (patch)
tree190bb77091fba770fd82eb53ec6e0fa837440a5b /FICS/gamedb.c
parent456d39aa3f9273761afbc7aa1d1843e5b9b88c84 (diff)
Reformatted functions
Diffstat (limited to 'FICS/gamedb.c')
-rw-r--r--FICS/gamedb.c33
1 files changed, 17 insertions, 16 deletions
diff --git a/FICS/gamedb.c b/FICS/gamedb.c
index 1a49c48..66bc574 100644
--- a/FICS/gamedb.c
+++ b/FICS/gamedb.c
@@ -141,29 +141,30 @@ PUBLIC int game_free(int g)
return 0;
}
-PUBLIC int game_clear(int g)
+PUBLIC int
+game_clear(int g)
{
- game_free(g);
- game_zero(g);
- return 0;
+ game_free(g);
+ game_zero(g);
+ return 0;
}
-PUBLIC int game_remove(int g)
+PUBLIC int
+game_remove(int g)
{
- /* Should remove game from players observation list */
- game_clear(g);
- garray[g].status = GAME_EMPTY;
- return 0;
+ // Should remove game from players observation list
+ game_clear(g);
+ garray[g].status = GAME_EMPTY;
+ return 0;
}
-/* old moves not stored now - uses smoves */
-PUBLIC int game_finish(int g)
+// old moves not stored now - uses smoves
+PUBLIC int
+game_finish(int g)
{
- player_game_ended(g); /* Alert playerdb that game ended */
-/* NewOldGame(g); */
-/* game_free(g) */
- game_remove(g);
- return 0;
+ player_game_ended(g); // Alert playerdb that game ended
+ game_remove(g);
+ return 0;
}
PUBLIC void