Report swap action with text, not just sound.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4895 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
mbjornstk 2010-03-02 01:21:32 +00:00
parent 90b95f6944
commit 7519e3d550

View File

@ -142,6 +142,14 @@ void Powerup::use()
item_manager->switchItems();
m_sound_use->position(m_owner->getXYZ());
m_sound_use->play();
// {} needed because "jump to case label \n crosses initialization of RaceGUI* gui" errors
{
RaceGUI* gui = World::getWorld()->getRaceGUI();
// Apocalypse Now style
gui->addMessage(_("Magic, son. Nothing else in the world smells like that."), NULL, 3.0f, 40, video::SColor(255, 210, 50, 50));
}
break;
case POWERUP_CAKE:
case POWERUP_BOWLING: