Date: Friday April 27, 2001 @ 21:42 Author: cameron Update of /home/netrek/cvsroot/Vanilla/ntserv In directory swashbuckler.fortress.real-time.com:/var/tmp/cvs-serv19436/ntserv Modified Files: commands.c Log Message: Sat Apr 28 11:39:39 2001 Benjamin `Quisar' Lerman <quisar at quisar.ambre.net> * configure.in, docs/sample_sysdef.in, docs/Makefile.in, INSTALL.INL: change configure --with-inl to also set .sysdef and update installation instructions. * ntserv/commands.c, robotd/util.c, robots/inlcmds.c: remove compiler warnings. * tools/nuke.c, tools/Makefile.in: restore nuke for systems that do not have ipcrm(8). * tools/ltd_convert.c, tools/sortdb.c: return must give value. **************************************** Index: Vanilla/ntserv/commands.c diff -u Vanilla/ntserv/commands.c:1.5 Vanilla/ntserv/commands.c:1.6 --- Vanilla/ntserv/commands.c:1.5 Fri Mar 24 13:55:15 2000 +++ Vanilla/ntserv/commands.c Fri Apr 27 21:42:34 2001 @@ -78,8 +78,8 @@ #if defined (TRIPLE_PLANET_MAYHEM) char *teamNames[9] = {" ", "Federation", "Romulans", " ", "Klingons", " ", " ", " ", "Orions"}; -void do_balance(); -void do_triple_planet_mayhem(); +int do_balance(); +int do_triple_planet_mayhem(); #endif #if defined (DOG) || defined (PUCK) /* DOG-FIGHTING & PUCK stuff */ @@ -747,7 +747,7 @@ ** If there are multiple "best" combinations, then the combination ** involving the least number of team swaps will be chosen. */ -void do_balance(void) +int do_balance(void) { int i, j; /* miscellaneous counters */ int records; /* number of players in game */ @@ -780,7 +780,7 @@ "Can't balance only one team!" ); pmessage ( 0, MALL, "GOD->ALL", "Please could somebody move to another team, then all vote again?" ); - return; + return 0; } /* initialise best to worst case */ @@ -919,9 +919,10 @@ teamNames[two], (float) ( best.two / 100.0 ) ); + return 0; } -void do_triple_planet_mayhem(void) +int do_triple_planet_mayhem(void) { int i; @@ -998,6 +999,7 @@ for ( i=0; strlen(list[i])!=0; i++ ) pmessage ( 0, MALL, "GOD->ALL", list[i] ); } + return 0; } #endif /* TRIPLE_PLANET_MAYHEM */