getBoolean

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@780 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Dave Hoover
2009-03-10 05:40:36 +00:00
parent ad9837830b
commit 6fe87f6920
2 changed files with 3 additions and 3 deletions
@@ -75,8 +75,8 @@ public class BobbleAnimation extends Animation
// calculate the latest position
int dx = RandomUtil.getInt(_rx);
int dy = RandomUtil.getInt(_ry);
_x = _sx + dx * (RandomUtil.getChance(2) ? -1 : 1);
_y = _sy + dy * (RandomUtil.getChance(2) ? -1 : 1);
_x = _sx + dx * (RandomUtil.getBoolean() ? -1 : 1);
_y = _sy + dy * (RandomUtil.getBoolean() ? -1 : 1);
}
@Override
@@ -120,7 +120,7 @@ public class SparkAnimation extends Animation
*/
protected int randomDirection ()
{
return RandomUtil.getChance(2) ? -1 : 1;
return RandomUtil.getBoolean() ? -1 : 1;
}
@Override