[Tux4kids-commits] r1490 - tuxmath/trunk/src

David Bruce dbruce-guest at alioth.debian.org
Sat Sep 5 03:06:10 UTC 2009


Author: dbruce-guest
Date: 2009-09-05 03:06:09 +0000 (Sat, 05 Sep 2009)
New Revision: 1490

Modified:
   tuxmath/trunk/src/CMakeLists.txt
   tuxmath/trunk/src/game.c
Log:
fix of cmake build file



Modified: tuxmath/trunk/src/CMakeLists.txt
===================================================================
--- tuxmath/trunk/src/CMakeLists.txt	2009-09-05 02:31:43 UTC (rev 1489)
+++ tuxmath/trunk/src/CMakeLists.txt	2009-09-05 03:06:09 UTC (rev 1490)
@@ -7,6 +7,7 @@
 find_package(SDL_ttf REQUIRED)
 find_package(SDL_mixer REQUIRED)
 find_package(SDL_gfx)
+find_package(SDL_net)
 
 if (NOT SDLGFX_FOUND)
   message("Adding rotozoom")
@@ -29,11 +30,13 @@
   lessons.c
   loaders.c
   mathcards.c
+  network.c
   options.c
   pixels.c
   scandir.c
   SDL_extras.c
   setup.c
+  throttle.c
   titlescreen.c
   multiplayer.c
   campaign.c
@@ -125,6 +128,7 @@
   ${SDLIMAGE_LIBRARY}
   ${SDLTTF_LIBRARY}
   ${SDLMIXER_LIBRARY}
+  ${SDLNET_LIBRARY}
   )
 
 if (SDLPANGO_FOUND)

Modified: tuxmath/trunk/src/game.c
===================================================================
--- tuxmath/trunk/src/game.c	2009-09-05 02:31:43 UTC (rev 1489)
+++ tuxmath/trunk/src/game.c	2009-09-05 03:06:09 UTC (rev 1490)
@@ -651,7 +651,7 @@
    local to this file and located immediately below this function - DSB */
 
 
-
+#ifdef HAVE_LIBSDL_NET
 void game_handle_net_messages(char buf[NET_BUF_LEN],char command[NET_BUF_LEN])
 {
   if(strncmp(command,"PLAYER_MSG",strlen("PLAYER_MSG"))==0)
@@ -698,9 +698,9 @@
   /* FIXME need to handle unrecognized messages, maybe just printf()
      with a warning until they get implemented - DSB             */
 }
+#endif
 
 
-
 /* 
 Set one to four lines of text to display at the game's start. Eventually
 this should stylishly fade out over the first few moments of the game.




More information about the Tux4kids-commits mailing list