Follow-up Comment #1, bug #7485 (project wormux):
A quick hack :
Index: object/physical_obj.h
===================================================================
--- object/physical_obj.h (révision 1498)
+++ object/physical_obj.h (copie de travail)
@@ -56,7 +56,7 @@
protected:
PhysicalObj* m_overlapping_object;
- void CheckOverlapping();
+ virtual void CheckOverlapping();
protected:
std::string m_name;
Index: weapon/launcher.cpp
===================================================================
--- weapon/launcher.cpp (révision 1498)
+++ weapon/launcher.cpp (copie de travail)
@@ -187,6 +187,12 @@
}
}
+void WeaponProjectile::CheckOverlapping()
+{
+ if(begin_time + 10 < Time::GetInstance()->Read()) return;
+ PhysicalObj::CheckOverlapping();
+}
+
// projectile explode and signal to the launcher the collision
void WeaponProjectile::SignalObjectCollision(PhysicalObj * obj)
{
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?7485>
_______________________________________________
Message posté via/par Gna!
http://gna.org/
_______________________________________________
Wormux-gna mailing list
[email protected]
https://mail.gna.org/listinfo/wormux-gna