[Tux4kids-commits] r1441 - branches/commonification/tuxtype/trunk/src

Bolesław Kulbabiński bolekk-guest at alioth.debian.org
Sun Aug 16 10:23:34 UTC 2009


Author: bolekk-guest
Date: 2009-08-16 10:23:34 +0000 (Sun, 16 Aug 2009)
New Revision: 1441

Modified:
   branches/commonification/tuxtype/trunk/src/laser.c
Log:
fixed small bug in loading media in tuxtype

Modified: branches/commonification/tuxtype/trunk/src/laser.c
===================================================================
--- branches/commonification/tuxtype/trunk/src/laser.c	2009-08-15 21:12:24 UTC (rev 1440)
+++ branches/commonification/tuxtype/trunk/src/laser.c	2009-08-16 10:23:34 UTC (rev 1441)
@@ -105,7 +105,6 @@
 	gameover = 0;
 	level_start_wait = LEVEL_START_WAIT_START;
 
-	
   /* (Create and position cities) */
   for (i = 0; i < NUM_CITIES; i++)
   {
@@ -125,13 +124,11 @@
 
 	laser.alive = 0;
 
-  
 	/* Reset remaining stuff: */
- 
 	laser_reset_level(diff_level);
-  
+
 	/* --- MAIN GAME LOOP!!! --- */
-  
+
 	frame = 0;
 	paused = 0;
 	picked_comet = -1;
@@ -152,13 +149,13 @@
 		tux_pressing = 0;
 
 		/* Handle any incoming events: */
-     
+
 		while (SDL_PollEvent(&event) > 0) {
 
 			if (event.type == SDL_QUIT) {
 				/* Window close event - quit! */
 				exit(0);
-	      
+
 			} else if (event.type == SDL_KEYDOWN) {
 
 				key = event.key.keysym.sym;
@@ -695,16 +692,17 @@
 /* --- Load all media --- */
 static void laser_load_data(void)
 {
-	int i;
+  int i;
 
-	/* Create the SDL_Surfaces for all of the characters */
-        /* used in the word list: */
-	RenderLetters(COMET_ZAP_FONT_SIZE);
+  /* Create the SDL_Surfaces for all of the characters */
+  /* used in the word list: */
+  RenderLetters(COMET_ZAP_FONT_SIZE);
 
-	/* Load images: */
-	for (i = IMG_TUX_HELMET1; i <= IMG_GAMEOVER; i++)
+  /* Load images: */
+  for (i = IMG_TUX_HELMET1; i <= IMG_GAMEOVER; i++)
     SetImage(i, NULL);
-	shield = GetSprite(ANIM_SHIELD);
+  SetSprite(ANIM_SHIELD, NULL);
+  shield = GetSprite(ANIM_SHIELD);
 
 //	PauseLoadMedia();
 }




More information about the Tux4kids-commits mailing list