From a74923349a9d484b9f80e638af011a0a198ba364 Mon Sep 17 00:00:00 2001 From: auria Date: Fri, 26 Dec 2008 19:48:12 +0000 Subject: [PATCH] rubber band detaching committed previously should only happen when attached to track, not karts git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2783 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/items/rubber_band.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/items/rubber_band.cpp b/src/items/rubber_band.cpp index cca8fa040..ce3ce610f 100755 --- a/src/items/rubber_band.cpp +++ b/src/items/rubber_band.cpp @@ -137,7 +137,7 @@ void RubberBand::update(float dt) Vec3 diff = p-k; // detach rubber band if kart gets very close to hit point - if(diff.length2() < 10*10) + if(m_attached_state==RB_TO_TRACK && diff.length2() < 10*10) { // Rubber band snaps m_plunger->hit(NULL);