[Tux4kids-commits] r1144 - tuxmath/branches/lan/server
akash gangil
gangil-guest at alioth.debian.org
Sat Jul 4 21:26:07 UTC 2009
Author: gangil-guest
Date: 2009-07-04 21:26:02 +0000 (Sat, 04 Jul 2009)
New Revision: 1144
Modified:
tuxmath/branches/lan/server/server.c
tuxmath/branches/lan/server/testclient.c
Log:
Minor Fix
Modified: tuxmath/branches/lan/server/server.c
===================================================================
--- tuxmath/branches/lan/server/server.c 2009-07-04 15:56:42 UTC (rev 1143)
+++ tuxmath/branches/lan/server/server.c 2009-07-04 21:26:02 UTC (rev 1144)
@@ -463,7 +463,7 @@
/*Send score notification to all the clients except the one who answered it*/
for(n = 0; n < MAX_CLIENTS && client[n].sock; n++)
{
- if(n==id) /*I dont think , we would like to send it to the client who answered it*/
+ if(n==i) /*I dont think , we would like to send it to the client who answered it*/
continue;
if(!SendMessage(ANSWER_CORRECT,id,client[i].name,client[n].sock))
{
Modified: tuxmath/branches/lan/server/testclient.c
===================================================================
--- tuxmath/branches/lan/server/testclient.c 2009-07-04 15:56:42 UTC (rev 1143)
+++ tuxmath/branches/lan/server/testclient.c 2009-07-04 21:26:02 UTC (rev 1144)
@@ -361,10 +361,6 @@
// Presumably we want to print the message to stdout
printf("%s\n", buf);
}
- else if(strncmp(command,"NOTIFICATION",strlen("NOTIFICATION")) == 0)
- {
- printf("%s\n", buf);
- }
else if(strncmp(command,"PING", strlen("PING")) == 0)
{
More information about the Tux4kids-commits
mailing list