r6637 - packages/trunk/biniax2/debian/patches

Miriam Ruiz baby-guest at alioth.debian.org
Fri Apr 18 10:34:31 UTC 2008


Author: baby-guest
Date: 2008-04-18 10:34:31 +0000 (Fri, 18 Apr 2008)
New Revision: 6637

Added:
   packages/trunk/biniax2/debian/patches/warnings.patch
Log:
Forgot to add this file in the latest commit



Added: packages/trunk/biniax2/debian/patches/warnings.patch
===================================================================
--- packages/trunk/biniax2/debian/patches/warnings.patch	                        (rev 0)
+++ packages/trunk/biniax2/debian/patches/warnings.patch	2008-04-18 10:34:31 UTC (rev 6637)
@@ -0,0 +1,134 @@
+# Copyright (C) 2008 by Miriam Ruiz <little_miry at yahoo.es>
+# Distributed under the same license as the game. See debian/copyright
+
+Index: biniax2/desktop/inp.c
+===================================================================
+--- biniax2.orig/desktop/inp.c	2008-04-18 10:20:20.000000000 +0000
++++ biniax2/desktop/inp.c	2008-04-18 10:20:21.000000000 +0000
+@@ -118,6 +118,8 @@
+ 					case SDLK_PAGEDOWN : 
+ 						_Inp.keyPageDown= BNX_TRUE;
+ 						break;
++					default:
++						break;
+ 				}
+ 				if ( event.key.keysym.sym >= SDLK_a && event.key.keysym.sym <= SDLK_z )
+ 				{
+Index: biniax2/desktop/gfx.c
+===================================================================
+--- biniax2.orig/desktop/gfx.c	2008-04-18 10:20:21.000000000 +0000
++++ biniax2/desktop/gfx.c	2008-04-18 10:20:21.000000000 +0000
+@@ -194,7 +194,7 @@
+ 		pos.y = cGfxZeroY + game->player[ cPlayer1 ].y * cGfxPairPlusY;
+ 		if ( pos.y <= cGfxZeroY )
+ 		{
+-			SDL_BlitSurface( _Gfx.cursors[cursor], NULL, _Gfx.screen, &pos );
++			SDL_BlitSurface( _Gfx.cursors[ (int)cursor ], NULL, _Gfx.screen, &pos );
+ 		}
+ 
+ 		/* RENDER MAIN (WHITE) PLAYER */
+@@ -202,7 +202,7 @@
+ 		pos.y = cGfxZeroY + game->player[ cPlayer1 ].y * cGfxPairPlusY;
+ 		if ( pos.y <= cGfxZeroY )
+ 		{
+-			SDL_BlitSurface( _Gfx.elements[game->player[ cPlayer1 ].e], NULL, _Gfx.screen, &pos );
++			SDL_BlitSurface( _Gfx.elements[ (int)game->player[ cPlayer1 ].e], NULL, _Gfx.screen, &pos );
+ 			if ( game->score[ cPlayer1 ] != prevScore[ cPlayer1 ] )
+ 			{
+ 				gfxNewParticle( pos.x + (cGfxNextPlusX >> 1), pos.y );
+@@ -229,7 +229,7 @@
+ 			pos.y = cGfxZeroY + game->player[ cPlayer2 ].y * cGfxPairPlusY;
+ 			if ( pos.y <= cGfxZeroY )
+ 			{
+-				SDL_BlitSurface( _Gfx.cursors[cursor], NULL, _Gfx.screen, &pos );
++				SDL_BlitSurface( _Gfx.cursors[ (int)cursor ], NULL, _Gfx.screen, &pos );
+ 			}
+ 
+ 			/* RENDER GREEN PLAYER */
+@@ -237,7 +237,7 @@
+ 			pos.y = cGfxZeroY + game->player[ cPlayer2 ].y * cGfxPairPlusY;
+ 			if ( pos.y <= cGfxZeroY )
+ 			{
+-				SDL_BlitSurface( _Gfx.elements[game->player[ cPlayer2 ].e], NULL, _Gfx.screen, &pos );
++				SDL_BlitSurface( _Gfx.elements[ (int)game->player[ cPlayer2 ].e], NULL, _Gfx.screen, &pos );
+ 				if ( game->score[ cPlayer2 ] != prevScore[ cPlayer2 ] )
+ 				{
+ 					gfxNewParticle( pos.x + (cGfxNextPlusX >> 1), pos.y );
+Index: biniax2/biniax.c
+===================================================================
+--- biniax2.orig/biniax.c	2008-04-18 10:20:21.000000000 +0000
++++ biniax2/biniax.c	2008-04-18 10:20:45.000000000 +0000
+@@ -105,7 +105,6 @@
+ 	BNX_BOOL		bquit		= BNX_FALSE;
+ 	BNX_INT16		enterState	= cStateMainMenu;
+ 	BNX_INT16		nmenu		= 0;
+-	BNX_INT16		mmenu		= 0;
+ 
+ 	UNREF( argc );
+ 	UNREF( argv );
+@@ -308,7 +307,7 @@
+ 		if ( game->grid[ i ][ nearLine ] != 0 )
+ 		{
+ 			game->player[ cPlayer1 ].e = pairLeft( game->grid[ i ][ nearLine ] );
+-			game->grid[ game->player[ cPlayer1 ].x ][ game->player[ cPlayer1 ].y ] = cPlayerFlag;
++			game->grid[ (int)game->player[ cPlayer1 ].x ][ (int)game->player[ cPlayer1 ].y ] = cPlayerFlag;
+ 			break;
+ 		}
+ 	}
+@@ -320,7 +319,7 @@
+ 		if ( game->grid[ i ][ nearLine ] != 0 )
+ 		{
+ 			game->player[ cPlayer2 ].e = pairRight( game->grid[ i ][ nearLine ] );
+-			game->grid[ game->player[ cPlayer2 ].x ][ game->player[ cPlayer2 ].y ] = cPlayerFlag;
++			game->grid[ (int)game->player[ cPlayer2 ].x ][ (int)game->player[ cPlayer2 ].y ] = cPlayerFlag;
+ 			break;
+ 		}
+ 	}
+@@ -522,7 +521,7 @@
+ 	{
+ 		if ( takePair( game, p->x, newY, pIndex ) == BNX_TRUE )
+ 		{
+-			game->grid[ p->x ][ p->y ] = 0;
++			game->grid[ (int)p->x ][ (int)p->y ] = 0;
+ 			p->y = newY;
+ 			return BNX_TRUE;
+ 		}
+@@ -540,7 +539,7 @@
+ 	{
+ 		if ( takePair( game, p->x, newY, pIndex ) == BNX_TRUE )
+ 		{
+-			game->grid[ p->x ][ p->y ] = 0;
++			game->grid[ (int)p->x ][ (int)p->y ] = 0;
+ 			p->y = newY;
+ 			return BNX_TRUE;
+ 		}
+@@ -558,7 +557,7 @@
+ 	{
+ 		if ( takePair( game, newX, p->y, pIndex ) == BNX_TRUE )
+ 		{
+-			game->grid[ p->x ][ p->y ] = 0;
++			game->grid[ (int)p->x ][ (int)p->y ] = 0;
+ 			p->x = newX;
+ 			return BNX_TRUE;
+ 		}
+@@ -576,7 +575,7 @@
+ 	{
+ 		if ( takePair( game, newX, p->y, pIndex ) == BNX_TRUE )
+ 		{
+-			game->grid[ p->x ][ p->y ] = 0;
++			game->grid[ (int)p->x ][ (int)p->y ] = 0;
+ 			p->x = newX;
+ 			return BNX_TRUE;
+ 		}
+@@ -634,9 +633,9 @@
+ 	{
+ 		for ( y = 0; y < cGridY; ++y )
+ 		{
+-			if ( game->grid[ game->player[ cPlayer1 ].x ][ y ] != cPlayerFlag )
++			if ( game->grid[ (int)game->player[ cPlayer1 ].x ][ y ] != cPlayerFlag )
+ 			{
+-				game->grid[ game->player[ cPlayer1 ].x ][ y ] = 0;
++				game->grid[ (int)game->player[ cPlayer1 ].x ][ y ] = 0;
+ 			}
+ 		}
+ 	}




More information about the Pkg-games-commits mailing list