From: <au...@us...> - 2009-04-26 00:29:26
|
Revision: 3433 http://supertuxkart.svn.sourceforge.net/supertuxkart/?rev=3433&view=rev Author: auria Date: 2009-04-26 00:29:24 +0000 (Sun, 26 Apr 2009) Log Message: ----------- added more debug checks for jpenguin Modified Paths: -------------- main/branches/irrlicht/src/input/input_device.cpp Modified: main/branches/irrlicht/src/input/input_device.cpp =================================================================== --- main/branches/irrlicht/src/input/input_device.cpp 2009-04-26 00:24:16 UTC (rev 3432) +++ main/branches/irrlicht/src/input/input_device.cpp 2009-04-26 00:29:24 UTC (rev 3433) @@ -287,8 +287,12 @@ { std::cout << "For jpenguin (a)\n"; - std::cout << "id=" << id << ", m_prevAxisDirections[id]=" << m_prevAxisDirections[id] << std::endl; + std::cout << "id=" << id << std::endl; + assert(id < m_axis_count); + + std::cout << "m_prevAxisDirections[id]=" << m_prevAxisDirections[id] << std::endl; + // going to negative from positive if (value < 0 && m_prevAxisDirections[id] == Input::AD_POSITIVE) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |