---
 src/weapon/weapon_launcher.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/weapon/weapon_launcher.cpp b/src/weapon/weapon_launcher.cpp
index 214e3b8..49ea584 100644
--- a/src/weapon/weapon_launcher.cpp
+++ b/src/weapon/weapon_launcher.cpp
@@ -217,6 +217,10 @@ void WeaponProjectile::Refresh()
     Explosion();
     return;
   }
+  // The RefreshSurface() call is necessary as the image determines the size 
of the projectile
+  // and we don't want to rely on Draw to call RefreshSurface() as the draw 
rate differs
+  // for the players in a multiplayer game.
+  image->RefreshSurface();
   SetSize(image->GetSizeMax());
   // Explose after timeout
   int tmp = Time::GetInstance()->Read() - begin_time;
-- 
1.6.0.4


_______________________________________________
Wormux-dev mailing list
Wormux-dev@gna.org
https://mail.gna.org/listinfo/wormux-dev

Répondre à