From: <gk...@us...> - 2010-05-12 21:19:29
|
Revision: 23188 http://gmod.svn.sourceforge.net/gmod/?rev=23188&view=rev Author: gk_fan Date: 2010-05-12 21:19:09 +0000 (Wed, 12 May 2010) Log Message: ----------- Fixed infinite loop when calculating scoring factor when it encounters a score of 0. Modified Paths: -------------- apollo/trunk/src/java/apollo/gui/WiggleScoreCalculator.java Modified: apollo/trunk/src/java/apollo/gui/WiggleScoreCalculator.java =================================================================== --- apollo/trunk/src/java/apollo/gui/WiggleScoreCalculator.java 2010-05-12 20:04:00 UTC (rev 23187) +++ apollo/trunk/src/java/apollo/gui/WiggleScoreCalculator.java 2010-05-12 21:19:09 UTC (rev 23188) @@ -143,7 +143,7 @@ else { continue; } - if (Math.abs(score) < minAbsScore) { + if (score != 0 && Math.abs(score) < minAbsScore) { minAbsScore = Math.abs(score); } for (int i = pos; i <= pos + span; ++i) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |