From: <hik...@us...> - 2009-01-21 02:22:10
|
Revision: 3017 http://supertuxkart.svn.sourceforge.net/supertuxkart/?rev=3017&view=rev Author: hikerstk Date: 2009-01-21 01:40:29 +0000 (Wed, 21 Jan 2009) Log Message: ----------- Removed rotating kart when a group is selected (r3016). Modified Paths: -------------- trunk/supertuxkart/src/gui/char_sel.cpp Modified: trunk/supertuxkart/src/gui/char_sel.cpp =================================================================== --- trunk/supertuxkart/src/gui/char_sel.cpp 2009-01-21 01:39:59 UTC (rev 3016) +++ trunk/supertuxkart/src/gui/char_sel.cpp 2009-01-21 01:40:29 UTC (rev 3017) @@ -314,7 +314,13 @@ { int indx=m_index_avail_karts[n]; // if a group is hovered about, don't do anything - if(indx<0) return; + if(indx<0) + { + m_current_kart = -1; + ssgDeRefDelete(m_kart); + m_kart = NULL; + return; + } const KartProperties* kp= kart_properties_manager->getKartById(indx); if (m_current_kart != n && kp != NULL) @@ -385,7 +391,7 @@ int token = widget_manager->getSelectedWgt() - WTOK_RACER0; if(token<0 || token>(int)m_index_avail_karts.size()) token = widget_manager->getSelectedWgt() - WTOK_NAME0; - switchCharacter((token+m_offset)%m_index_avail_karts.size()); + switchCharacter((token+m_offset)%m_index_avail_karts.size()); } if (m_kart != NULL) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |