From 668e8dc719338a4864e9438d765693d064e3544f Mon Sep 17 00:00:00 2001 From: auria Date: Sun, 8 Dec 2013 17:10:20 +0000 Subject: [PATCH] Apply supermat patch to remove a couple leftover hit messages, thanks git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14663 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/items/rubber_band.cpp | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/src/items/rubber_band.cpp b/src/items/rubber_band.cpp index 99ad6e16a..fc4a9beec 100644 --- a/src/items/rubber_band.cpp +++ b/src/items/rubber_band.cpp @@ -36,26 +36,6 @@ #include -const wchar_t* getPlungerString() -{ - const int PLUNGER_STRINGS_AMOUNT = 3; - - RandomGenerator r; - const int id = r.get(PLUNGER_STRINGS_AMOUNT); - - switch (id) - { - //I18N: shown when hit by plunger. %0 is the victim, %1 is the attacker - case 0: return _LTR("%0 bites %1's bait"); - //I18N: shown when hit by plunger. %0 is the victim, %1 is the attacker - case 1: return _LTR("%1 latches onto %0 for a free ride"); - //I18N: shown when hit by plunger. %0 is the victim, %1 is the attacker - case 2: return _LTR("%1 tests a tractor beam on %0"); - default: assert(false); return L""; // avoid warning about no return value - } -} - - /** RubberBand constructor. It creates a simple quad and attaches it to the * root(!) of the graph. It's easier this way to get the right coordinates * than attaching it to the plunger or kart, and trying to find the other @@ -266,15 +246,6 @@ void RubberBand::hit(AbstractKart *kart_hit, const Vec3 *track_xyz) m_hit_kart = kart_hit; m_attached_state = RB_TO_KART; - - RaceGUIBase* gui = World::getWorld()->getRaceGUI(); - irr::core::stringw hit_message; - hit_message += StringUtils::insertValues(getPlungerString(), - core::stringw(kart_hit->getName()), - core::stringw(m_owner->getName()) - ).c_str(); - gui->addMessage(translations->fribidize(hit_message), NULL, 3.0f, - video::SColor(255, 255, 255, 255), false); return; }