[Tux4kids-commits] r578 - in tuxmath/trunk: data/missions/campaign/ace data/missions/campaign/commando data/missions/campaign/ranger data/missions/campaign/scout src

cheezmeister-guest at alioth.debian.org cheezmeister-guest at alioth.debian.org
Wed Jul 30 00:01:08 UTC 2008


Author: cheezmeister-guest
Date: 2008-07-30 00:01:05 +0000 (Wed, 30 Jul 2008)
New Revision: 578

Added:
   tuxmath/trunk/data/missions/campaign/ace/bonus
   tuxmath/trunk/data/missions/campaign/ace/round1
   tuxmath/trunk/data/missions/campaign/ace/round2
   tuxmath/trunk/data/missions/campaign/ace/round3
   tuxmath/trunk/data/missions/campaign/commando/round1
   tuxmath/trunk/data/missions/campaign/commando/round2
   tuxmath/trunk/data/missions/campaign/commando/round3
Modified:
   tuxmath/trunk/data/missions/campaign/ace/ace
   tuxmath/trunk/data/missions/campaign/commando/commando
   tuxmath/trunk/data/missions/campaign/ranger/bonus
   tuxmath/trunk/data/missions/campaign/ranger/ranger
   tuxmath/trunk/data/missions/campaign/ranger/round1
   tuxmath/trunk/data/missions/campaign/ranger/round2
   tuxmath/trunk/data/missions/campaign/ranger/round3
   tuxmath/trunk/data/missions/campaign/scout/bonus
   tuxmath/trunk/data/missions/campaign/scout/round1
   tuxmath/trunk/data/missions/campaign/scout/round2
   tuxmath/trunk/data/missions/campaign/scout/round3
   tuxmath/trunk/data/missions/campaign/scout/scout
   tuxmath/trunk/src/Makefile.am
   tuxmath/trunk/src/campaign.h
   tuxmath/trunk/src/credits.c
   tuxmath/trunk/src/game.c
   tuxmath/trunk/src/game.h
   tuxmath/trunk/src/titlescreen.c
Log:
Finished campaign design (minus difficulty tweaks). Put in alpha blending for start messages, but it's not working correctly....

Modified: tuxmath/trunk/data/missions/campaign/ace/ace
===================================================================
--- tuxmath/trunk/data/missions/campaign/ace/ace	2008-07-28 16:09:13 UTC (rev 577)
+++ tuxmath/trunk/data/missions/campaign/ace/ace	2008-07-30 00:01:05 UTC (rev 578)
@@ -1,8 +1,5 @@
 # campaign ace stage lesson file
 
-addition_allowed = 1
-subtraction_allowed = 1
-multiplication_allowed = 1
 division_allowed = 1
 typing_practice_allowed = 0
 allow_negatives = 1
@@ -17,8 +14,8 @@
 starting_comets = 3
 extra_comets_per_wave = 3
 max_comets = 12
-speed = 1.6
-speedup_factor = 1.25
+speed = 1.2
+speedup_factor = 1.1
 bonus_comet_interval = 20
 vary_list_length = 1
 

Added: tuxmath/trunk/data/missions/campaign/ace/bonus
===================================================================
--- tuxmath/trunk/data/missions/campaign/ace/bonus	                        (rev 0)
+++ tuxmath/trunk/data/missions/campaign/ace/bonus	2008-07-30 00:01:05 UTC (rev 578)
@@ -0,0 +1,25 @@
+#ace bonus round
+
+subtraction_allowed = 1
+addition_allowed = 1
+multiplication_allowed = 1
+division_allowed = 1
+min_formula_nums = 2
+max_formula_nums = 5
+min_addend = -20
+max_addend = 20
+min_augend = -20
+max_augend = 20
+min_minuend = -20
+max_minuend = 20
+min_subtrahend = -20
+max_subtrahend = 20
+min_multiplier = -10
+max_multiplier = 10
+min_multiplicand = -10
+max_multiplicand = 10
+min_divisor = -10
+max_divisor = 10
+min_quotient = -10
+max_quotient = 10
+avg_list_length = 20


Property changes on: tuxmath/trunk/data/missions/campaign/ace/bonus
___________________________________________________________________
Name: svn:executable
   + *

Added: tuxmath/trunk/data/missions/campaign/ace/round1
===================================================================
--- tuxmath/trunk/data/missions/campaign/ace/round1	                        (rev 0)
+++ tuxmath/trunk/data/missions/campaign/ace/round1	2008-07-30 00:01:05 UTC (rev 578)
@@ -0,0 +1,10 @@
+#ace round 1
+
+addition_allowed = 0
+subtraction_allowed = 0
+multiplication_allowed = 0
+min_divisor = -10
+max_divisor = 10
+min_quotient = -10
+max_quotient = 10
+avg_list_length = 150

Added: tuxmath/trunk/data/missions/campaign/ace/round2
===================================================================
--- tuxmath/trunk/data/missions/campaign/ace/round2	                        (rev 0)
+++ tuxmath/trunk/data/missions/campaign/ace/round2	2008-07-30 00:01:05 UTC (rev 578)
@@ -0,0 +1,14 @@
+#ace round 2
+
+addition_allowed = 0
+subtraction_allowed = 0
+multiplication_allowed = 1
+min_divisor = -20
+max_divisor = 20
+min_quotient = -20
+max_quotient = 20
+min_multiplier = -10
+max_multiplier = 10
+min_multiplicand = -10
+max_multiplicand = 10
+avg_list_length = 150

Added: tuxmath/trunk/data/missions/campaign/ace/round3
===================================================================
--- tuxmath/trunk/data/missions/campaign/ace/round3	                        (rev 0)
+++ tuxmath/trunk/data/missions/campaign/ace/round3	2008-07-30 00:01:05 UTC (rev 578)
@@ -0,0 +1,22 @@
+#ace round 3
+
+addition_allowed = 1
+subtraction_allowed = 1
+multiplication_allowed = 1
+min_divisor = -20
+max_divisor = 20
+min_quotient = -20
+max_quotient = 20
+min_multiplier = -10
+max_multiplier = 10
+min_multiplicand = -10
+max_multiplicand = 10
+min_addend = -10
+max_addend = 10
+min_augend = -10
+max_augend = 10
+min_minuend = -10
+max_minuend = 10
+min_subtrahend = -10
+max_subtrahend = 10
+avg_list_length = 150
\ No newline at end of file

Modified: tuxmath/trunk/data/missions/campaign/commando/commando
===================================================================
--- tuxmath/trunk/data/missions/campaign/commando/commando	2008-07-28 16:09:13 UTC (rev 577)
+++ tuxmath/trunk/data/missions/campaign/commando/commando	2008-07-30 00:01:05 UTC (rev 578)
@@ -17,8 +17,8 @@
 starting_comets = 3
 extra_comets_per_wave = 3
 max_comets = 12
-speed = 1.6
-speedup_factor = 1.25
+speed = 1.1
+speedup_factor = 1.05
 bonus_comet_interval = 20
 vary_list_length = 1
 

Added: tuxmath/trunk/data/missions/campaign/commando/round1
===================================================================
--- tuxmath/trunk/data/missions/campaign/commando/round1	                        (rev 0)
+++ tuxmath/trunk/data/missions/campaign/commando/round1	2008-07-30 00:01:05 UTC (rev 578)
@@ -0,0 +1,20 @@
+#commando round 1
+
+max_formula_nums = 2
+min_multiplier = -20
+max_multiplier = 20
+min_multiplicand = -20
+max_multiplicand = 20
+min_divisor = -20
+max_divisor = 20
+min_quotient = -20
+max_quotient = 20
+min_addend = -20
+max_addend = 20
+min_augend = -20
+max_augend = 20
+min_minuend = -20
+max_minuend = 20
+min_subtrahend = -20
+max_subtrahend = 20
+avg_list_length = 150

Added: tuxmath/trunk/data/missions/campaign/commando/round2
===================================================================
--- tuxmath/trunk/data/missions/campaign/commando/round2	                        (rev 0)
+++ tuxmath/trunk/data/missions/campaign/commando/round2	2008-07-30 00:01:05 UTC (rev 578)
@@ -0,0 +1,20 @@
+#commando round 2
+
+max_formula_nums = 5
+min_multiplier = -10
+max_multiplier = 10
+min_multiplicand = -10
+max_multiplicand = 10
+min_divisor = -10
+max_divisor = 10
+min_quotient = -10
+max_quotient = 10
+min_addend = -10
+max_addend = 10
+min_augend = -10
+max_augend = 10
+min_minuend = -10
+max_minuend = 10
+min_subtrahend = -10
+max_subtrahend = 10
+avg_list_length = 150

Added: tuxmath/trunk/data/missions/campaign/commando/round3
===================================================================
--- tuxmath/trunk/data/missions/campaign/commando/round3	                        (rev 0)
+++ tuxmath/trunk/data/missions/campaign/commando/round3	2008-07-30 00:01:05 UTC (rev 578)
@@ -0,0 +1,21 @@
+#commando round 3
+
+max_formula_nums = 5
+typing_practice_allowed = 1
+min_multiplier = -20
+max_multiplier = 20
+min_multiplicand = -20
+max_multiplicand = 20
+min_divisor = -20
+max_divisor = 20
+min_quotient = -20
+max_quotient = 20
+min_addend = -20
+max_addend = 20
+min_augend = -20
+max_augend = 20
+min_minuend = -20
+max_minuend = 20
+min_subtrahend = -20
+max_subtrahend = 20
+avg_list_length = 100

Modified: tuxmath/trunk/data/missions/campaign/ranger/bonus
===================================================================
--- tuxmath/trunk/data/missions/campaign/ranger/bonus	2008-07-28 16:09:13 UTC (rev 577)
+++ tuxmath/trunk/data/missions/campaign/ranger/bonus	2008-07-30 00:01:05 UTC (rev 578)
@@ -22,4 +22,4 @@
 max_divisor = 10
 min_quotient = 0
 max_quotient = 10
-avg_list_length = 10
+avg_list_length = 20

Modified: tuxmath/trunk/data/missions/campaign/ranger/ranger
===================================================================
--- tuxmath/trunk/data/missions/campaign/ranger/ranger	2008-07-28 16:09:13 UTC (rev 577)
+++ tuxmath/trunk/data/missions/campaign/ranger/ranger	2008-07-30 00:01:05 UTC (rev 578)
@@ -17,7 +17,7 @@
 starting_comets = 3
 extra_comets_per_wave = 2
 max_comets = 10
-speed = 1.5
+speed = 1.0
 speedup_factor = 1.2
 bonus_comet_interval = 20
 vary_list_length = 1

Modified: tuxmath/trunk/data/missions/campaign/ranger/round1
===================================================================
--- tuxmath/trunk/data/missions/campaign/ranger/round1	2008-07-28 16:09:13 UTC (rev 577)
+++ tuxmath/trunk/data/missions/campaign/ranger/round1	2008-07-30 00:01:05 UTC (rev 578)
@@ -7,3 +7,4 @@
 max_multiplier = 10
 min_multiplicand = 0
 max_multiplicand = 10
+avg_list_length = 110

Modified: tuxmath/trunk/data/missions/campaign/ranger/round2
===================================================================
--- tuxmath/trunk/data/missions/campaign/ranger/round2	2008-07-28 16:09:13 UTC (rev 577)
+++ tuxmath/trunk/data/missions/campaign/ranger/round2	2008-07-30 00:01:05 UTC (rev 578)
@@ -2,11 +2,12 @@
 
 addition_allowed = 1
 subtraction_allowed = 0
-min_multiplier = 0
+min_multiplier = -20
 max_multiplier = 20
-min_multiplicand = 0
+min_multiplicand = -20
 max_multiplicand = 20
-min_addend = 0
+min_addend = -10
 max_addend = 10
-min_augend = 0
+min_augend = -10
 max_augend = 10
+avg_list_length = 130

Modified: tuxmath/trunk/data/missions/campaign/ranger/round3
===================================================================
--- tuxmath/trunk/data/missions/campaign/ranger/round3	2008-07-28 16:09:13 UTC (rev 577)
+++ tuxmath/trunk/data/missions/campaign/ranger/round3	2008-07-30 00:01:05 UTC (rev 578)
@@ -2,15 +2,16 @@
 
 addition_allowed = 1
 subtraction_allowed = 1
-min_multiplier = 0
+min_multiplier = -20
 max_multiplier = 20
-min_multiplicand = 0
+min_multiplicand = -20
 max_multiplicand = 20
-min_addend = 0
+min_addend = -20
 max_addend = 20
-min_augend = 0
+min_augend = -20
 max_augend = 20
-min_minuend = 0
+min_minuend = -10
 max_minuend = 10
-min_subtrahend = 0
-max_subtrahend = 10
\ No newline at end of file
+min_subtrahend = -10
+max_subtrahend = 10
+avg_list_length = 150
\ No newline at end of file

Modified: tuxmath/trunk/data/missions/campaign/scout/bonus
===================================================================
--- tuxmath/trunk/data/missions/campaign/scout/bonus	2008-07-28 16:09:13 UTC (rev 577)
+++ tuxmath/trunk/data/missions/campaign/scout/bonus	2008-07-30 00:01:05 UTC (rev 578)
@@ -13,4 +13,4 @@
 max_multiplier = 10
 min_multiplicand = 0
 max_multiplicand = 10
-avg_list_length = 10
+avg_list_length = 20

Modified: tuxmath/trunk/data/missions/campaign/scout/round1
===================================================================
--- tuxmath/trunk/data/missions/campaign/scout/round1	2008-07-28 16:09:13 UTC (rev 577)
+++ tuxmath/trunk/data/missions/campaign/scout/round1	2008-07-30 00:01:05 UTC (rev 578)
@@ -5,4 +5,4 @@
 max_minuend = 10
 min_subtrahend = 0
 max_subtrahend = 10
-avg_list_length = 0
\ No newline at end of file
+avg_list_length = 60
\ No newline at end of file

Modified: tuxmath/trunk/data/missions/campaign/scout/round2
===================================================================
--- tuxmath/trunk/data/missions/campaign/scout/round2	2008-07-28 16:09:13 UTC (rev 577)
+++ tuxmath/trunk/data/missions/campaign/scout/round2	2008-07-30 00:01:05 UTC (rev 578)
@@ -5,4 +5,4 @@
 max_minuend = 20
 min_subtrahend = 0
 max_subtrahend = 20
-avg_list_length = 0
\ No newline at end of file
+avg_list_length = 80
\ No newline at end of file

Modified: tuxmath/trunk/data/missions/campaign/scout/round3
===================================================================
--- tuxmath/trunk/data/missions/campaign/scout/round3	2008-07-28 16:09:13 UTC (rev 577)
+++ tuxmath/trunk/data/missions/campaign/scout/round3	2008-07-30 00:01:05 UTC (rev 578)
@@ -9,4 +9,4 @@
 max_addend = 10
 min_augend = 0
 max_augend = 10
-avg_list_length = 0
\ No newline at end of file
+avg_list_length = 100
\ No newline at end of file

Modified: tuxmath/trunk/data/missions/campaign/scout/scout
===================================================================
--- tuxmath/trunk/data/missions/campaign/scout/scout	2008-07-28 16:09:13 UTC (rev 577)
+++ tuxmath/trunk/data/missions/campaign/scout/scout	2008-07-30 00:01:05 UTC (rev 578)
@@ -18,7 +18,7 @@
 extra_comets_per_wave = 2
 max_comets = 8
 speed = 1.00
-speedup_factor = 1.2
+speedup_factor = 1.1
 bonus_comet_interval = 15
 vary_list_length = 0
 

Modified: tuxmath/trunk/src/Makefile.am
===================================================================
--- tuxmath/trunk/src/Makefile.am	2008-07-28 16:09:13 UTC (rev 577)
+++ tuxmath/trunk/src/Makefile.am	2008-07-30 00:01:05 UTC (rev 578)
@@ -32,6 +32,7 @@
 	loaders.c	\
 	audio.c 	\
 	mathcards.c	\
+	campaign.c	\
 	fileops.c	\
 	ConvertUTF.c	\
 	SDL_extras.c	\
@@ -51,6 +52,7 @@
 		options.h	\
 		setup.h		\
 		titlescreen.h	\
+		campaign.h	\
 		tuxmath.h	\
 		ConvertUTF.h	\
 		SDL_extras.h	\

Modified: tuxmath/trunk/src/campaign.h
===================================================================
--- tuxmath/trunk/src/campaign.h	2008-07-28 16:09:13 UTC (rev 577)
+++ tuxmath/trunk/src/campaign.h	2008-07-30 00:01:05 UTC (rev 578)
@@ -14,7 +14,7 @@
 #define NUM_ROUNDS 3
 
 
-static char* briefings[NUM_STAGES][50] = {
+static char* briefings[NUM_STAGES][100] = {
   //cadet
   {
     "-[Esc] to skip",
@@ -110,7 +110,7 @@
     "You have been invited to the Royal Igloo for a",
     "celebration, where the Emperor will personally",
     "offer a token of gratitude. He tells us it's a",
-    "surprise."
+    "surprise.",
     "",
     "-........",
     "-@**>##;7^^PLEaSe StaND bY",
@@ -130,7 +130,7 @@
     "huge amounts of additive Undotrium. To solve them",
     "you will need to add over and over again. Just",
     "one comet can have a question like 3*6, which is",
-    "the same as 3+3+3+3+3+3!"
+    "the same as 3+3+3+3+3+3!",
     "",
     "Be careful, Tux. We have also picked up signs of",
     "comets that are very different from the ones",
@@ -139,12 +139,12 @@
     "strange things to addition and subtraction. If",
     "a negative number is added, it is really",
     "subtracted, and if it is subtracted, it's really",
-    "added."
+    "added.",
     //TODO better explanation of negatives
     "Also, if two numbers are multiplied and one of",
     "them is negative, the answer will be negative",
     "also. But if both numbers are negative, the",
-    "answer is positive! Be careful."
+    "answer is positive! Be careful.",
     "",
     "We are making you a Ranger right away, and we",
     "hope that you will give the Emperor and his",
@@ -154,15 +154,97 @@
   //ace
   {
     "-[Esc] to skip",
-    "Ace",
+    "Mission Four: Imperial Ace",
+    "--------------------------",
+    "You did it, Tux! The Emperor and the penguins of",
+    "FOSS are safe once more. His majesty would like",
+    "to speak to you.",
     "",
+    "-Please stand by...",
+    "**OFFICIAL ROYAL TRANSMISSION**",
+    "-Thank you, Tux. The planet FOSS will forever be",
+    "-grateful. Please honor us tonight and join our",
+    "-celebration. I would like to personally give",
+    "-you the designation of imperial Ace. You've done",
+    "-well, and you are truly deserving.",
+    "**END OF TRANSMISSION**",
+    "",
+    "Bravo, Tux! The rank of Ace is the highest honor",
+    "a Math Command pilot can get. It can only come",
+    "from the Emperor himself! We will leave you to",
+    "your celebration. When you are finished, there",
+    "is more to do. Your mission, should you choose",
+    "to accept it, is to end the menace of all these",
+    "Mathematican comets once and for all.",
+    "",
+    "Our scientists have investigated the cause of",
+    "the repeated assault of comets: these aren't",
+    "coming from Mathematica anymore. A portion of",
+    "the original Mathematican asteroids passed",
+    "through Recursa Minor, a small but interesting",
+    "solar system that multiplies and replicates",
+    "anything that comes near it.",
+    "",
+    "You must travel into Recursa Minor to destroy",
+    "the rest of the asteroids before more copies",
+    "come out of there and threaten our people. To",
+    "make sure there aren't extra copies of YOU,",
+    "we will let you borrow the Singleton, an advanced",
+    "space ship the Galactic scientists wish to test",
+    "out. There should only ever be one Singleton.",
+    "",
+    "Tux, you will have to destroy asteroids that have",
+    "never come out of Recursa Minor: divisive",
+    "Undotrium asteroids. Don't be fooled by the",
+    "fancy symbol, \"%\". Division is just backwards",
+    "multiplication, or repeated subtraction. If you",
+    "subtract the divisor (the second number) from",
+    "the dividend over and over again, and put up a",
+    "finger every time you do, when you hit zero, the",
+    "number of fingers you're holding up will be the",
+    "answer. It's called the quotient, and it's the",
+    "only thing that will let you shoot divisive",
+    "Undotrium.",
+    "",
+    "Finish this, Tux. You're our Ace.",
     NULL
   },
   //commando
   {
     "-[Esc] to skip",
-    "Commando",
+    "Final Mission: Computing Commando",
+    "---------------------------------",
+    "The penguins came along with you? I see. Those",
+    "penguins were copies of the ones from FOSS. The",
+    "Singleton was not perfect after all. ",
     "",
+    "The ship is yours, Tux. Our scientists need to",
+    "start from scratch. Something about not",
+    "remembering how to build another Singleton.",
+    "",
+    "You've done well; there have been no more comet",
+    "assaults since you left FOSS. However, there are",
+    "still more asteroids deep in Recursa Minor,",
+    "orbiting the Moon of Infinite Recursion. The Moon",
+    "has mashed different comets into something far,",
+    "far nastier than what was originally there.",
+    "They're made of different types of Undotrium, and",
+    "to destroy them, you will need to figure out the",
+    "answer to each type. First to multiplication and",
+    "division. Then do addition and subtraction. We",
+    "have two examples:",
+    "-5*2+7 = 10+7 = 17",
+    "-8/4*3*2 = 2*3*2 = 6*2 = 12",
+    "Notice that in the first question, we do 5*2=10",
+    "first, because multiplication comes before",
+    "division.",
+    "In the second question, since there is division",
+    "and multiplication, we start on the left and go",
+    "right. If you go the other way, you will get the",
+    "wrong answer!",
+    "",
+    "This is it, Tux. Succeed here and the galaxy is",
+    "safe again. It's time to go Commando.",
     NULL
   },
 };

Modified: tuxmath/trunk/src/credits.c
===================================================================
--- tuxmath/trunk/src/credits.c	2008-07-28 16:09:13 UTC (rev 577)
+++ tuxmath/trunk/src/credits.c	2008-07-30 00:01:05 UTC (rev 578)
@@ -472,8 +472,8 @@
       if (now_time < last_time + (1000 / 20))
         {
           SDL_Delay(last_time + (1000 / 20) - now_time);
-          last_time = SDL_GetTicks();
-        }
+        }
+      last_time = SDL_GetTicks();
     }
   while (!done);
   return quit;

Modified: tuxmath/trunk/src/game.c
===================================================================
--- tuxmath/trunk/src/game.c	2008-07-28 16:09:13 UTC (rev 577)
+++ tuxmath/trunk/src/game.c	2008-07-30 00:01:05 UTC (rev 578)
@@ -912,6 +912,7 @@
 {
   msg->x = x;
   msg->y = y;
+  msg->alpha = SDL_ALPHA_OPAQUE;
   strncpy(msg->message,txt,GAME_MESSAGE_LENGTH);
 }
 
@@ -934,6 +935,9 @@
     else
       rect.x = msg->x;              // left justified
     rect.y = msg->y;
+    
+    SDL_SetAlpha(surf, SDL_SRCALPHA, msg->alpha);
+    
     SDL_BlitSurface(surf, NULL, screen, &rect);
     SDL_FreeSurface(surf);
     //SDL_UpdateRect(screen, rect.x, rect.y, rect.w, rect.h);
@@ -1187,6 +1191,13 @@
   if (level_start_wait <= 0)
     return;
 
+  //dim start messages
+  s1.alpha -= SDL_ALPHA_OPAQUE / LEVEL_START_WAIT_START;
+  s2.alpha -= SDL_ALPHA_OPAQUE / LEVEL_START_WAIT_START;
+  s3.alpha -= SDL_ALPHA_OPAQUE / LEVEL_START_WAIT_START;
+  s4.alpha -= SDL_ALPHA_OPAQUE / LEVEL_START_WAIT_START;
+  tmdprintf("alpha = %d\n", s1.alpha);
+  
   level_start_wait--;
   if (level_start_wait > LEVEL_START_WAIT_START / 4)
     tux_img = IMG_TUX_RELAX1;
@@ -1724,7 +1735,6 @@
   }
 }
 
-/* FIXME consider splitting this into smaller functions e.g. draw_comets(), etc. */
 void game_draw(void)
 {
   SDL_Rect dest;

Modified: tuxmath/trunk/src/game.h
===================================================================
--- tuxmath/trunk/src/game.h	2008-07-28 16:09:13 UTC (rev 577)
+++ tuxmath/trunk/src/game.h	2008-07-30 00:01:05 UTC (rev 578)
@@ -86,6 +86,7 @@
 
 typedef struct {
   int x,y;
+  int alpha;
   char message[GAME_MESSAGE_LENGTH];
 } game_message;
 

Modified: tuxmath/trunk/src/titlescreen.c
===================================================================
--- tuxmath/trunk/src/titlescreen.c	2008-07-28 16:09:13 UTC (rev 577)
+++ tuxmath/trunk/src/titlescreen.c	2008-07-30 00:01:05 UTC (rev 578)
@@ -1600,6 +1600,19 @@
             case SDLK_c:
             {
               start_campaign();
+              RecalcTitlePositions();
+              RecalcMenuPositions(&n_entries_per_screen,
+                                  n_menu_entries,
+                                  &menu_opts,
+                                  set_custom_menu_opts,
+                                  &menu_button_rect,
+                                  &menu_sprite_rect,
+                                  &menu_text_rect,
+                                  &back_button_rect,
+                                  &back_sprite_rect,
+                                  &back_text_rect,
+                                  &left_arrow_rect,
+                                  &right_arrow_rect);
               redraw = 1;
             }
 #endif




More information about the Tux4kids-commits mailing list