Fixed using switch in easter egg mode (#924) - thanks to hired777.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12669 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2013-04-17 22:18:14 +00:00
parent 5648939d8f
commit 455f11cb0a

View File

@ -174,8 +174,8 @@ void Item::setType(ItemType type)
*/
void Item::switchTo(ItemType type, scene::IMesh *mesh, scene::IMesh *lowmesh)
{
// triggers should not be switched
if (m_type == ITEM_TRIGGER) return;
// triggers and easter eggs should not be switched
if (m_type == ITEM_TRIGGER || m_type == ITEM_EASTER_EGG) return;
m_original_type = m_type;
setType(type);