[maniadrive] - Fix a crash when pressing 't', which enables the drawing of ode wire frames (rhbz#657353)

Hans de Goede jwrdegoede at fedoraproject.org
Sun Jan 9 10:36:03 UTC 2011


commit 78184c193c6fe57eb5c4c17752bbc0ed3ca25c95
Author: Hans de Goede <hdegoede at redhat.com>
Date:   Sun Jan 9 11:43:26 2011 +0100

    - Fix a crash when pressing 't', which enables the drawing of ode
      wire frames (rhbz#657353)

 maniadrive-1.2-fixes.patch |    9 +++++++++
 maniadrive.spec            |    6 +++++-
 2 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/maniadrive-1.2-fixes.patch b/maniadrive-1.2-fixes.patch
index 532f23b..9c3f4d2 100644
--- a/maniadrive-1.2-fixes.patch
+++ b/maniadrive-1.2-fixes.patch
@@ -105,3 +105,12 @@ diff -up ManiaDrive-1.2-src/raydium/ode.c~ ManiaDrive-1.2-src/raydium/ode.c
  raydium_ode_ExplosionCallback=NULL;
  raydium_ode_CollideCallback=NULL;
  raydium_ode_RayCallback=NULL;
+@@ -3364,7 +3364,7 @@ for(i=0;i<RAYDIUM_ODE_MAX_ELEMENTS;i++)
+ 	        glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);	    
+ 	        }
+ 	    else
+-		//if(dGeomGetClass(raydium_ode_element[i].geom)==dSphereClass)
++		if(dGeomGetClass(raydium_ode_element[i].geom)==dSphereClass)
+ 		{
+ 	        glutWireSphere(dGeomSphereGetRadius(raydium_ode_element[i].geom),10,10);
+ 	        }
diff --git a/maniadrive.spec b/maniadrive.spec
index 80241cc..01242e6 100644
--- a/maniadrive.spec
+++ b/maniadrive.spec
@@ -1,6 +1,6 @@
 Name:           maniadrive
 Version:        1.2
-Release:        24%{?dist}
+Release:        25%{?dist}
 Summary:        3D stunt driving game
 Group:          Amusements/Games
 License:        GPLv2+
@@ -166,6 +166,10 @@ fi
 
 
 %changelog
+* Sun Jan 09 2011 Hans de Goede <hdegoede at redhat.com> 1.2-25
+- Fix a crash when pressing 't', which enables the drawing of ode
+  wire frames (rhbz#657353)
+
 * Sat Jan 08 2011 Remi Collet <Fedora at famillecollet.com> 1.2-24
 - Rebuild for new php 5.3.5
 


More information about the scm-commits mailing list