more fix for compilation problem with KX_RayCast::Callback template in gcc
authorBenoit Bolsee <benoit.bolsee@online.be>
Thu, 28 Aug 2008 11:06:46 +0000 (11:06 +0000)
committerBenoit Bolsee <benoit.bolsee@online.be>
Thu, 28 Aug 2008 11:06:46 +0000 (11:06 +0000)
source/gameengine/Ketsji/KX_MouseFocusSensor.cpp
source/gameengine/Ketsji/KX_RaySensor.cpp

index 721bd4d44d67d341b862ab873a958e9f2042eea6..3156f543ed57caf0c2297b7f328a5c0c35251b9d 100644 (file)
@@ -272,7 +272,8 @@ bool KX_MouseFocusSensor::ParentObjectHasFocus(void)
 
        bool result = false;
 
-       KX_RayCast::RayTest(physics_environment, frompoint3, topoint3, KX_RayCast::Callback<KX_MouseFocusSensor>(this,physics_controller));
+       KX_RayCast::Callback<KX_MouseFocusSensor> callback(this,physics_controller);
+       KX_RayCast::RayTest(physics_environment, frompoint3, topoint3, callback);
        
        result = (m_hitObject!=0);
 
index f62df542be5895b897ba7a33aaf0a89c2e16f6e3..57101b769ea83931b4b59d43c49e063e572e3cf6 100644 (file)
@@ -243,7 +243,8 @@ bool KX_RaySensor::Evaluate(CValue* event)
        PHY_IPhysicsEnvironment* physics_environment = this->m_scene->GetPhysicsEnvironment();
        
 
-       KX_RayCast::RayTest(physics_environment, frompoint, topoint, KX_RayCast::Callback<KX_RaySensor>(this, spc));
+       KX_RayCast::Callback<KX_RaySensor> callback(this, spc);
+       KX_RayCast::RayTest(physics_environment, frompoint, topoint, callback);
 
        /* now pass this result to some controller */