[Tux4kids-commits] r1192 - tuxmath/branches/lan/server
David Bruce
dbruce-guest at alioth.debian.org
Mon Jul 13 00:44:08 UTC 2009
Author: dbruce-guest
Date: 2009-07-13 00:44:08 +0000 (Mon, 13 Jul 2009)
New Revision: 1192
Modified:
tuxmath/branches/lan/server/server.c
Log:
code cleanup
Modified: tuxmath/branches/lan/server/server.c
===================================================================
--- tuxmath/branches/lan/server/server.c 2009-07-12 23:31:54 UTC (rev 1191)
+++ tuxmath/branches/lan/server/server.c 2009-07-13 00:44:08 UTC (rev 1192)
@@ -382,7 +382,7 @@
//NOTE Does this belong here? Seems to have more to do wth client connections.
- if(game_in_progress==1)
+ if(game_in_progress == 1)
{
for(i = 0; i < MAX_CLIENTS; i++)
{
@@ -502,21 +502,6 @@
game_msg_next_question();
}
-// else if(strncmp(command, "TOTAL_QUESTIONS_LEFT",strlen("TOTAL_QUESTIONS_LEFT")) == 0) /* Send Total Questions left */
-// {
-// game_msg_total_questions_left(i);
-// }
-
-
- //FIXME we're not going to need this one. "MISSION_ACCOMPLISHED" will be one of
- //the messages the server sends to the client
-// else if(strncmp(command, "MISSION_ACCOMPLISHED",strlen("MISSION_ACCOMPLISHED")) == 0) /* Check to see if mission is over*/
-
-// {
-// game_msg_mission_accomplished(i);
-// }
-
-
else if(strncmp(command, "exit",strlen("exit")) == 0) /* Terminate this connection */
{
game_msg_exit(i);
@@ -750,8 +735,8 @@
/*Function to send any messages to the client be it any warnings
- or anything the client is made to be informed*/
-int SendMessage(int message, int ques_id,char *name,TCPsocket client_sock)
+ or anything the client is made to be informed */
+int SendMessage(int message, int ques_id, char *name, TCPsocket client_sock)
{
int x, len;
char buf[NET_BUF_LEN];
More information about the Tux4kids-commits
mailing list