[Tux4kids-commits] r1004 - tuxmath/branches/lan/src
akash gangil
gangil-guest at alioth.debian.org
Fri May 29 19:41:47 UTC 2009
Author: gangil-guest
Date: 2009-05-29 19:41:47 +0000 (Fri, 29 May 2009)
New Revision: 1004
Modified:
tuxmath/branches/lan/src/titlescreen.c
Log:
Implicitly connected the two games on a localhost
Modified: tuxmath/branches/lan/src/titlescreen.c
===================================================================
--- tuxmath/branches/lan/src/titlescreen.c 2009-05-29 18:18:41 UTC (rev 1003)
+++ tuxmath/branches/lan/src/titlescreen.c 2009-05-29 19:41:47 UTC (rev 1004)
@@ -891,11 +891,7 @@
// lan_client_set_parameter(PORT, port);
// if((lan_client_connect(host,port))==0)
Standby(_("No Host...=("),_("Press Esc to go back"),host,port); // this function is defined in highscore.c...
-
-
-
-
- game();
+ game();
}
}
@@ -2823,18 +2819,20 @@
{
if(host==NULL)
{l=lan_server_connect(port);
- printf("%d\n",l);
+ printf("###############%d\##############n",l);
}
else
{l=lan_client_connect(host,port);
- printf("%d\n",l);
+ printf("##############%d#################\n",l);
}
- while(1)
- {
+
+
if(!l)
- printf("HOORAAAAAAAAAAAY!!!!!!!!!!");
- break;
- }
+ {printf("HOORAAAAAAAAAAAY!!!!!!!!!!");
+ return 0;
+ break;
+ }
+
switch (event.type)
{
@@ -2901,7 +2899,17 @@
frame++;
}
}
+
}
+
+ if(!l)
+ {printf("HOORAAAAAAAAAAAY!!!!!!!!!!");
+ return 0;
+ break;
+
+ }
+
+
} // End of while (!finished) loop
FreeSprite(Tux);
More information about the Tux4kids-commits
mailing list